Spaces:
Running
Running
updated submit function
Browse files
app.py
CHANGED
|
@@ -150,8 +150,8 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 150 |
continue
|
| 151 |
try:
|
| 152 |
if task_id in tasks:
|
| 153 |
-
|
| 154 |
-
submitted_answer = agent(
|
| 155 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 156 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 157 |
except Exception as e:
|
|
@@ -236,8 +236,8 @@ with gr.Blocks(title="TurboNerd Agent🤓") as demo:
|
|
| 236 |
question_input = gr.Textbox(
|
| 237 |
label="Ask a question",
|
| 238 |
placeholder="Type your question here...",
|
| 239 |
-
lines=
|
| 240 |
-
max_lines=
|
| 241 |
container=True,
|
| 242 |
scale=3
|
| 243 |
)
|
|
|
|
| 150 |
continue
|
| 151 |
try:
|
| 152 |
if task_id in tasks:
|
| 153 |
+
question_text2 = question_text + f"\n\nThis is the file path: {file_path + tasks[task_id]}"
|
| 154 |
+
submitted_answer = agent(question_text2)
|
| 155 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 156 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 157 |
except Exception as e:
|
|
|
|
| 236 |
question_input = gr.Textbox(
|
| 237 |
label="Ask a question",
|
| 238 |
placeholder="Type your question here...",
|
| 239 |
+
lines=9,
|
| 240 |
+
max_lines=9,
|
| 241 |
container=True,
|
| 242 |
scale=3
|
| 243 |
)
|