Update app.py
Browse files
app.py
CHANGED
@@ -69,5 +69,11 @@ def web_search(query: str):
|
|
69 |
messages = messages[-6:]
|
70 |
return f"You: {query}\nIT-Assistant: {response.content}"
|
71 |
|
72 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
demo.launch()
|
|
|
69 |
messages = messages[-6:]
|
70 |
return f"You: {query}\nIT-Assistant: {response.content}"
|
71 |
|
72 |
+
demo = gr.Interface(
|
73 |
+
fn=handle_query,
|
74 |
+
inputs=["text", "text", gr.Dropdown(["chat", "web-search"], label="Mode", default="chat")],
|
75 |
+
outputs="text",
|
76 |
+
title="IT Assistant",
|
77 |
+
description="Choose a mode and enter your message, then click submit to interact."
|
78 |
+
)
|
79 |
demo.launch()
|