AriniR commited on
Commit
526d3d2
·
verified ·
1 Parent(s): 53e9871

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
5
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
6
 
7
  def respond(message, history):
8
  messages = [{"role":"system","content":"You are a friendly chatbot"}]
@@ -20,11 +21,13 @@ def random_message (message, history):
20
  wow = random.choice(choices)
21
  theme = soft
22
  return wow
 
 
23
  chatbot = gr.ChatInterface(respond, type = "messages", title = "chatty")
24
 
25
 
26
 
27
- chatbot.launch()
28
 
29
  # repeats messages.
30
 
 
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
5
+ client = InferenceClient("google/gemma-3-27b-it")
6
+ ##change the LLM
7
 
8
  def respond(message, history):
9
  messages = [{"role":"system","content":"You are a friendly chatbot"}]
 
21
  wow = random.choice(choices)
22
  theme = soft
23
  return wow
24
+
25
+
26
  chatbot = gr.ChatInterface(respond, type = "messages", title = "chatty")
27
 
28
 
29
 
30
+ chatbot.launch(debug=True)
31
 
32
  # repeats messages.
33