Visionkambanje commited on
Commit
6d1ab96
·
verified ·
1 Parent(s): 9659cf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -65,7 +65,7 @@ def run_and_submit_all(api_key: str, profile: gr.OAuthProfile | None = None):
65
 
66
  # 1. Instantiate Agent ( modify this part to create your agent)
67
  try:
68
- agent = BasicAgent(api_key=api_key)
69
  except Exception as e:
70
  print(f"Error instantiating agent: {e}")
71
  return f"Error initializing agent: {e}", None
@@ -216,12 +216,7 @@ with gr.Blocks() as demo:
216
  """
217
  )
218
 
219
- # Add API Key input field
220
- api_key_input = gr.Textbox(
221
- label="API Key",
222
- placeholder="Enter your OpenAI API key here (sk-...)",
223
- type="password"
224
- )
225
  gr.LoginButton()
226
 
227
  run_button = gr.Button("Run Evaluation & Submit All Answers")
 
65
 
66
  # 1. Instantiate Agent ( modify this part to create your agent)
67
  try:
68
+ agent = BasicAgent(model=model)
69
  except Exception as e:
70
  print(f"Error instantiating agent: {e}")
71
  return f"Error initializing agent: {e}", None
 
216
  """
217
  )
218
 
219
+
 
 
 
 
 
220
  gr.LoginButton()
221
 
222
  run_button = gr.Button("Run Evaluation & Submit All Answers")