mou3az commited on
Commit
c98d37d
1 Parent(s): 1f64048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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(fn=handle_query, inputs=["text", "text"], outputs="text", title="IT Assistant", description="Choose a mode and enter your message, then click submit to interact.", choices=["chat", "web-search"])
 
 
 
 
 
 
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()