chiachun1224 commited on
Commit
bfeb827
·
verified ·
1 Parent(s): 8c2e999

Update gemini_simple.py

Browse files
Files changed (1) hide show
  1. gemini_simple.py +3 -3
gemini_simple.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
 
3
- def respond(message, history):
4
  history = history or []
5
- response = f"你說的是:{message}"
6
  history.append((message, response))
7
  return history, history
8
 
9
- gr.ChatInterface(respond, title="B10090087 張嘉峻").launch()
 
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()