Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -70,19 +70,16 @@ with gr.Blocks() as demo:
|
|
| 70 |
This chatbot uses AI to answer your questions and retrieve relevant studies from the arXiv database.
|
| 71 |
Enter your specific query in the field below, and the bot will provide you with studies including the title, link, and summary.
|
| 72 |
""")
|
| 73 |
-
query_input = gr.Textbox(value="", label="Query", placeholder="Enter your specific search term.")
|
| 74 |
|
| 75 |
-
def respond_with_query(query, *args):
|
| 76 |
-
return respond(*args, query=query)
|
| 77 |
|
| 78 |
chat_interface = gr.ChatInterface(
|
| 79 |
-
fn=respond_with_query,
|
| 80 |
additional_inputs=[
|
| 81 |
-
query_input,
|
| 82 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 83 |
gr.Dropdown(label="Sortby", choices=["relevance", "lastUpdatedDate", "submittedDate"], value="relevance"),
|
| 84 |
gr.Dropdown(label="Sort", choices=["ascending", "descending"], value="descending"),
|
| 85 |
gr.Slider(label="MaxEntries", minimum=1, maximum=50, value=20, step=1),
|
|
|
|
|
|
|
| 86 |
],
|
| 87 |
)
|
| 88 |
|
|
|
|
| 70 |
This chatbot uses AI to answer your questions and retrieve relevant studies from the arXiv database.
|
| 71 |
Enter your specific query in the field below, and the bot will provide you with studies including the title, link, and summary.
|
| 72 |
""")
|
|
|
|
| 73 |
|
|
|
|
|
|
|
| 74 |
|
| 75 |
chat_interface = gr.ChatInterface(
|
|
|
|
| 76 |
additional_inputs=[
|
|
|
|
| 77 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 78 |
gr.Dropdown(label="Sortby", choices=["relevance", "lastUpdatedDate", "submittedDate"], value="relevance"),
|
| 79 |
gr.Dropdown(label="Sort", choices=["ascending", "descending"], value="descending"),
|
| 80 |
gr.Slider(label="MaxEntries", minimum=1, maximum=50, value=20, step=1),
|
| 81 |
+
gr.Textbox(value="", label="Query", placeholder="Enter your specific search term.")
|
| 82 |
+
|
| 83 |
],
|
| 84 |
)
|
| 85 |
|