Update app.py
Browse files
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(
|
| 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 |
-
|
| 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")
|