Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def invoke(level, question, file_name, ground_truth, openai_api_key):
|
|
| 25 |
gr.close_all()
|
| 26 |
|
| 27 |
demo = gr.Interface(fn = invoke,
|
| 28 |
-
inputs = [gr.Radio([1, 2, 3], label = "Level",
|
| 29 |
gr.Textbox(label = "Question", value = os.environ["INPUT_QUESTION"]),
|
| 30 |
gr.Textbox(label = "File Name", value = os.environ["INPUT_FILENAME"]),
|
| 31 |
gr.Textbox(label = "Ground Truth", value = os.environ["INPUT_FINALANSWER"]),
|
|
|
|
| 25 |
gr.close_all()
|
| 26 |
|
| 27 |
demo = gr.Interface(fn = invoke,
|
| 28 |
+
inputs = [gr.Radio([1, 2, 3], label = "Level", value = int(os.environ["INPUT_LEVEL"])),
|
| 29 |
gr.Textbox(label = "Question", value = os.environ["INPUT_QUESTION"]),
|
| 30 |
gr.Textbox(label = "File Name", value = os.environ["INPUT_FILENAME"]),
|
| 31 |
gr.Textbox(label = "Ground Truth", value = os.environ["INPUT_FINALANSWER"]),
|