Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,6 +115,7 @@ def gemini_chat(prompt, history):
|
|
115 |
response = chat.send_message(message)
|
116 |
return response.text
|
117 |
|
|
|
118 |
|
119 |
gr.ChatInterface(
|
120 |
fn=gemini_chat,
|
@@ -125,10 +126,6 @@ gr.ChatInterface(
|
|
125 |
).launch(show_api=False)
|
126 |
|
127 |
|
128 |
-
convo.send_message("YOUR_USER_INPUT")
|
129 |
-
print(convo.last.text)
|
130 |
-
|
131 |
-
|
132 |
|
133 |
|
134 |
|
|
|
115 |
response = chat.send_message(message)
|
116 |
return response.text
|
117 |
|
118 |
+
chat = model.start_chat()
|
119 |
|
120 |
gr.ChatInterface(
|
121 |
fn=gemini_chat,
|
|
|
126 |
).launch(show_api=False)
|
127 |
|
128 |
|
|
|
|
|
|
|
|
|
129 |
|
130 |
|
131 |
|