Update app.py
Browse files
app.py
CHANGED
@@ -39,13 +39,13 @@ def invoke(level, question, file_name, ground_truth, openai_api_key, gemini_api_
|
|
39 |
gr.close_all()
|
40 |
|
41 |
demo = gr.Interface(fn=invoke,
|
42 |
-
inputs=[gr.Radio([1, 2, 3], label="Level"),
|
43 |
-
gr.Markdown(label="Question"),
|
44 |
-
gr.Textbox(label="File Name"),
|
45 |
-
gr.Textbox(label="Ground Truth"),
|
46 |
gr.Textbox(label="OpenAI API Key", type="password"),
|
47 |
gr.Textbox(label="Gemini API Key", type="password")],
|
48 |
-
outputs=[gr.Textbox(label="Answer", lines=1, interactive=False)],
|
49 |
title="General AI Assistant (GAIA) π€π€π€",
|
50 |
description=os.environ["DESCRIPTION"],
|
51 |
examples=get_questions(QUESTION_FILE_PATH),
|
|
|
39 |
gr.close_all()
|
40 |
|
41 |
demo = gr.Interface(fn=invoke,
|
42 |
+
inputs=[gr.Radio([1, 2, 3], label="Level", value=os.environ["INPUT_LEVEL"]),
|
43 |
+
gr.Markdown(label="Question", value=os.environ["INPUT_QUESTION"]),
|
44 |
+
gr.Textbox(label="File Name", value=os.environ["INPUT_FILE_NAME"]),
|
45 |
+
gr.Textbox(label="Ground Truth", value=os.environ["INPUT_GROUND_TRUTH"]),
|
46 |
gr.Textbox(label="OpenAI API Key", type="password"),
|
47 |
gr.Textbox(label="Gemini API Key", type="password")],
|
48 |
+
outputs=[gr.Textbox(label="Answer", lines=1, interactive=False, value=os.environ["OUTPUT"])],
|
49 |
title="General AI Assistant (GAIA) π€π€π€",
|
50 |
description=os.environ["DESCRIPTION"],
|
51 |
examples=get_questions(QUESTION_FILE_PATH),
|