Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -257,12 +257,11 @@ location_input = gr.Textbox(label="Enter your location (latitude,longitude)", pl
|
|
| 257 |
|
| 258 |
# Gradio interface definition
|
| 259 |
demo = gr.Interface(
|
| 260 |
-
fn=lambda message, location, history
|
| 261 |
inputs=[
|
| 262 |
gr.Textbox(label="Message"),
|
| 263 |
location_input,
|
| 264 |
"state",
|
| 265 |
-
"text" # API Key input
|
| 266 |
],
|
| 267 |
outputs=[
|
| 268 |
chatbot,
|
|
|
|
| 257 |
|
| 258 |
# Gradio interface definition
|
| 259 |
demo = gr.Interface(
|
| 260 |
+
fn=lambda message, location, history: user_interface(message, location, history, GOOGLE_API_KEY, words, labels, model),
|
| 261 |
inputs=[
|
| 262 |
gr.Textbox(label="Message"),
|
| 263 |
location_input,
|
| 264 |
"state",
|
|
|
|
| 265 |
],
|
| 266 |
outputs=[
|
| 267 |
chatbot,
|