Spaces:
Runtime error
Runtime error
Delete app.py with huggingface_hub
Browse files
app.py
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
# app.py
|
2 |
-
import gradio as gr
|
3 |
-
from agent import DemoAgent
|
4 |
-
|
5 |
-
agent = DemoAgent(agent_name="demo_agent")
|
6 |
-
|
7 |
-
def run_agent(input_text):
|
8 |
-
result = agent.run(input_text)
|
9 |
-
return result.get("result", "No result returned.")
|
10 |
-
|
11 |
-
iface = gr.Interface(
|
12 |
-
fn=run_agent,
|
13 |
-
inputs=gr.Textbox(lines=5, label="Enter your research question"),
|
14 |
-
outputs=gr.Textbox(label="Agent Response"),
|
15 |
-
title="Demo Agent: Academic Research Assistant",
|
16 |
-
description="Find papers, summarize key findings, and generate research questions."
|
17 |
-
)
|
18 |
-
|
19 |
-
if __name__ == "__main__":
|
20 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|