yilunzhao commited on
Commit
fb843c4
·
verified ·
1 Parent(s): fe61ed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -197,7 +197,7 @@ class Reviewer:
197
  generate_from_openai_chat_completion(
198
  client,
199
  messages=[messages],
200
- engine_name="gpt-4o-mini", # gpt-3.5-turbo
201
  max_tokens=1000, # 32
202
  requests_per_minute = 20,
203
  # response_format={"type":"json_object"},
@@ -230,7 +230,7 @@ class Reviewer:
230
  generate_from_openai_chat_completion(
231
  client,
232
  messages=[messages],
233
- engine_name="gpt-4o-mini", # gpt-3.5-turbo
234
  max_tokens=1000, # 32
235
  requests_per_minute = 20,
236
  response_format={"type":"json_object"},
@@ -271,7 +271,7 @@ class Reviewer:
271
  generate_from_openai_chat_completion(
272
  client,
273
  messages=messages,
274
- engine_name="gpt-4o-mini",
275
  max_tokens=1000,
276
  requests_per_minute=100,
277
  )
@@ -402,7 +402,7 @@ Organize the result in JSON format as follows:
402
  generate_from_openai_chat_completion(
403
  client,
404
  messages=[messages],
405
- engine_name="gpt-4o-mini", # gpt-3.5-turbo
406
  max_tokens=1000, # 32
407
  requests_per_minute = 20,
408
  response_format={"type":"json_object"},
@@ -526,7 +526,7 @@ Organize the result in JSON format as follows:
526
  generate_from_openai_chat_completion(
527
  client,
528
  messages=[messages],
529
- engine_name="gpt-4o-mini", # gpt-3.5-turbo
530
  max_tokens=1000, # 32
531
  requests_per_minute = 20,
532
  response_format={"type":"json_object"},
@@ -598,9 +598,9 @@ inp = [gradio.Textbox(label="Enter your API-key",
598
  gradio.Radio(choices=["Methodology", "Experimental Design", "Result Analysis", "Literature Review"],
599
  value="Methodology",
600
  label="Select the aspect"),
601
- gradio.Dropdown(["gpt-4o-mini","gpt-4o", "Qwen/Qwen2.5-7B-Instruct-Turbo", "meta-llama/Meta-Llama-3-70B-Instruct-Turbo", "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo"],
602
  label="Select the model name",
603
- value="gpt-4o-mini"),
604
  gradio.Textbox(label="Enter the number of limitations to generate.",
605
  value="3"),
606
  gradio.Checkbox(label="Enable RAG", value=False),
 
197
  generate_from_openai_chat_completion(
198
  client,
199
  messages=[messages],
200
+ engine_name="gpt-4.1-mini", # gpt-3.5-turbo
201
  max_tokens=1000, # 32
202
  requests_per_minute = 20,
203
  # response_format={"type":"json_object"},
 
230
  generate_from_openai_chat_completion(
231
  client,
232
  messages=[messages],
233
+ engine_name="gpt-4.1-mini", # gpt-3.5-turbo
234
  max_tokens=1000, # 32
235
  requests_per_minute = 20,
236
  response_format={"type":"json_object"},
 
271
  generate_from_openai_chat_completion(
272
  client,
273
  messages=messages,
274
+ engine_name="gpt-4.1-mini",
275
  max_tokens=1000,
276
  requests_per_minute=100,
277
  )
 
402
  generate_from_openai_chat_completion(
403
  client,
404
  messages=[messages],
405
+ engine_name="gpt-4.1-mini", # gpt-3.5-turbo
406
  max_tokens=1000, # 32
407
  requests_per_minute = 20,
408
  response_format={"type":"json_object"},
 
526
  generate_from_openai_chat_completion(
527
  client,
528
  messages=[messages],
529
+ engine_name="gpt-4.1-mini", # gpt-3.5-turbo
530
  max_tokens=1000, # 32
531
  requests_per_minute = 20,
532
  response_format={"type":"json_object"},
 
598
  gradio.Radio(choices=["Methodology", "Experimental Design", "Result Analysis", "Literature Review"],
599
  value="Methodology",
600
  label="Select the aspect"),
601
+ gradio.Dropdown(["gpt-4.1-mini","gpt-4.1"],
602
  label="Select the model name",
603
+ value="gpt-4.1"),
604
  gradio.Textbox(label="Enter the number of limitations to generate.",
605
  value="3"),
606
  gradio.Checkbox(label="Enable RAG", value=False),