VJ-Rising commited on
Commit
7ddc73f
·
verified ·
1 Parent(s): 51237a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- import random
3
  from huggingface_hub import InferenceClient
4
 
5
  client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
@@ -16,9 +15,7 @@ def random_response(message, history):
16
  max_tokens = 1000
17
  )
18
  return response.choices[0].message.content.strip()
19
- #response_options = ["nope", "yeah", "no", "yes", "absolutely not", "absolutely"]
20
- return random.choice(response_options)
21
-
22
  chatbot = gr.ChatInterface(random_response, title = "Vanshika's First Chatbot")
23
 
24
  chatbot.launch()
 
1
  import gradio as gr
 
2
  from huggingface_hub import InferenceClient
3
 
4
  client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
 
15
  max_tokens = 1000
16
  )
17
  return response.choices[0].message.content.strip()
18
+
 
 
19
  chatbot = gr.ChatInterface(random_response, title = "Vanshika's First Chatbot")
20
 
21
  chatbot.launch()