Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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()
|