Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ AGENT_LANGCHAIN = "LangChain"
|
|
14 |
AGENT_LLAMAINDEX = "LlamaIndex"
|
15 |
|
16 |
config = {
|
17 |
-
"model": "gpt-4o",
|
18 |
"temperature": 0
|
19 |
}
|
20 |
|
@@ -91,7 +91,7 @@ demo = gr.Interface(
|
|
91 |
gr.Textbox(label = "Prompt", lines = 1,
|
92 |
value = "How does current weather in San Francisco and Paris compare in metric and imperial system? Answer in JSON format and include today's date."),
|
93 |
gr.Radio([AGENT_OFF, AGENT_LANGCHAIN, AGENT_LLAMAINDEX], label = "Use Agent", value = AGENT_LANGCHAIN)],
|
94 |
-
outputs = [gr.
|
95 |
title = "Real-Time Reasoning Application",
|
96 |
description = os.environ["DESCRIPTION"]
|
97 |
)
|
|
|
14 |
AGENT_LLAMAINDEX = "LlamaIndex"
|
15 |
|
16 |
config = {
|
17 |
+
"model": "gpt-4o",
|
18 |
"temperature": 0
|
19 |
}
|
20 |
|
|
|
91 |
gr.Textbox(label = "Prompt", lines = 1,
|
92 |
value = "How does current weather in San Francisco and Paris compare in metric and imperial system? Answer in JSON format and include today's date."),
|
93 |
gr.Radio([AGENT_OFF, AGENT_LANGCHAIN, AGENT_LLAMAINDEX], label = "Use Agent", value = AGENT_LANGCHAIN)],
|
94 |
+
outputs = [gr.Markdown(label = "Completion", value=os.environ["OUTPUT"])],
|
95 |
title = "Real-Time Reasoning Application",
|
96 |
description = os.environ["DESCRIPTION"]
|
97 |
)
|