Spaces:
Sleeping
Sleeping
Update gemini_simple.py
Browse files- gemini_simple.py +3 -3
gemini_simple.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
history = history or []
|
| 5 |
-
response = f"
|
| 6 |
history.append((message, response))
|
| 7 |
return history, history
|
| 8 |
|
| 9 |
-
gr.ChatInterface(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def chat(message, history):
|
| 4 |
history = history or []
|
| 5 |
+
response = f"Gemini 回應你:{message}"
|
| 6 |
history.append((message, response))
|
| 7 |
return history, history
|
| 8 |
|
| 9 |
+
gr.ChatInterface(chat, title="B10090087 張嘉峻").launch()
|