Update app.py
Browse files
app.py
CHANGED
@@ -71,9 +71,7 @@ def web_search(query: str):
|
|
71 |
|
72 |
demo = gr.Interface(
|
73 |
fn=handle_query,
|
74 |
-
inputs=["text",
|
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()
|
|
|
71 |
|
72 |
demo = gr.Interface(
|
73 |
fn=handle_query,
|
74 |
+
inputs=["text", gr.Radio(["Chat", "Web-Search"], label="Mode", info="Choose a mode and enter your message, then click submit to interact.")],
|
75 |
outputs="text",
|
76 |
+
title="IT Assistant")
|
|
|
|
|
77 |
demo.launch()
|