Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
-
client = InferenceClient("
|
5 |
|
6 |
def respond(message, history):
|
7 |
|
@@ -21,6 +21,6 @@ def respond(message, history):
|
|
21 |
|
22 |
return response['choices'][0]['message']['content'].strip()
|
23 |
|
24 |
-
chatbot = gr.ChatInterface(respond
|
25 |
|
26 |
chatbot.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
+
client = InferenceClient("google/gemma-2-2b-it")
|
5 |
|
6 |
def respond(message, history):
|
7 |
|
|
|
21 |
|
22 |
return response['choices'][0]['message']['content'].strip()
|
23 |
|
24 |
+
chatbot = gr.ChatInterface(respond)
|
25 |
|
26 |
chatbot.launch()
|