Skip to content

Commit 6150276

Browse files
refactor: replace name TEACHER/STUDENT with SYNTHESIZER/TRAINEE
1 parent 73857da commit 6150276

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

judge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def calculate_average_loss(graph: NetworkXStorage):
3333
args = parser.parse_args()
3434

3535
llm_client = OpenAIModel(
36-
model_name=os.getenv("STUDENT_MODEL"),
37-
api_key=os.getenv("STUDENT_API_KEY"),
38-
base_url=os.getenv("STUDENT_BASE_URL")
36+
model_name=os.getenv("TRAINEE_MODEL"),
37+
api_key=os.getenv("TRAINEE_API_KEY"),
38+
base_url=os.getenv("TRAINEE_BASE_URL")
3939
)
4040

4141
graph_storage = NetworkXStorage(

webui/app.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def run_graphgen(
8585
edge_sampling: str,
8686
isolated_node_strategy: str,
8787
difficulty_level: str,
88-
teacher_model: str,
89-
teacher_base_url: str,
90-
teacher_api_key: str,
91-
student_model: str,
92-
student_base_url: str,
93-
student_api_key: str,
88+
synthesizer_model: str,
89+
synthesizer_base_url: str,
90+
synthesizer_api_key: str,
91+
trainee_model: str,
92+
trainee_base_url: str,
93+
trainee_api_key: str,
9494
quiz_samples: int,
9595
progress=gr.Progress()
9696
) -> str:
@@ -116,12 +116,12 @@ def run_graphgen(
116116
save_config(config)
117117

118118
env = {
119-
"SYNTHESIZER_MODEL": teacher_model,
120-
"SYNTHESIZER_BASE_URL": teacher_base_url,
121-
"SYNTHESIZER_API_KEY": teacher_api_key,
122-
"TRAINEE_MODEL": student_model,
123-
"TRAINEE_BASE_URL": student_base_url,
124-
"TRAINEE_API_KEY": student_api_key
119+
"SYNTHESIZER_MODEL": synthesizer_model,
120+
"SYNTHESIZER_BASE_URL": synthesizer_base_url,
121+
"SYNTHESIZER_API_KEY": synthesizer_api_key,
122+
"TRAINEE_MODEL": trainee_model,
123+
"TRAINEE_BASE_URL": trainee_base_url,
124+
"TRAINEE_API_KEY": trainee_api_key
125125
}
126126
save_env(env)
127127

@@ -190,12 +190,12 @@ def run_graphgen(
190190
# Model Configuration Column
191191
with gr.Column(scale=1):
192192
gr.Markdown("### Model Configuration")
193-
teacher_model = gr.Textbox(label="Synthesizer Model")
194-
teacher_base_url = gr.Textbox(label="Synthesizer Base URL")
195-
teacher_api_key = gr.Textbox(label="Synthesizer API Key", type="password")
196-
student_model = gr.Textbox(label="Trainee Model")
197-
student_base_url = gr.Textbox(label="Trainee Base URL")
198-
student_api_key = gr.Textbox(label="Trainee API Key", type="password")
193+
synthesizer_model = gr.Textbox(label="Synthesizer Model")
194+
synthesizer_base_url = gr.Textbox(label="Synthesizer Base URL")
195+
synthesizer_api_key = gr.Textbox(label="Synthesizer API Key", type="password")
196+
trainee_model = gr.Textbox(label="Trainee Model")
197+
trainee_base_url = gr.Textbox(label="Trainee Base URL")
198+
trainee_api_key = gr.Textbox(label="Trainee API Key", type="password")
199199

200200
# Submission and Output Rows
201201
with gr.Row():
@@ -210,8 +210,8 @@ def run_graphgen(
210210
input_file, data_type, qa_form, tokenizer, web_search,
211211
expand_method, bidirectional, max_extra_edges, max_tokens,
212212
max_depth, edge_sampling, isolated_node_strategy, difficulty_level,
213-
teacher_model, teacher_base_url, teacher_api_key,
214-
student_model, student_base_url, student_api_key,
213+
synthesizer_model, synthesizer_base_url, synthesizer_api_key,
214+
trainee_model, trainee_base_url, trainee_api_key,
215215
quiz_samples
216216
],
217217
outputs=output

0 commit comments

Comments
 (0)