Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ import gradio as gr
|
|
| 6 |
import random
|
| 7 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 8 |
|
|
|
|
| 9 |
#step 2 from semantic search read file
|
| 10 |
# Open the water_cycle.txt file in read mode with UTF-8 encoding
|
| 11 |
with open("reconext_file.txt", "r", encoding="utf-8") as file:
|
|
@@ -98,7 +99,6 @@ with gr.Blocks() as chatbot:
|
|
| 98 |
show_label=False,
|
| 99 |
show_share_button = False,
|
| 100 |
show_download_button = False)
|
| 101 |
-
gr.ChatInterface(respond, type="messages")
|
| 102 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 103 |
chatbot.launch()
|
| 104 |
chatbot.chatbot.update([(None, "Hey! I’m your Gen-Z watch buddy \nI help you find your next favorite TV show based on what you have liked before, your age, and your favorite genre. Just say what you're into!")])
|
|
|
|
| 6 |
import random
|
| 7 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 8 |
|
| 9 |
+
|
| 10 |
#step 2 from semantic search read file
|
| 11 |
# Open the water_cycle.txt file in read mode with UTF-8 encoding
|
| 12 |
with open("reconext_file.txt", "r", encoding="utf-8") as file:
|
|
|
|
| 99 |
show_label=False,
|
| 100 |
show_share_button = False,
|
| 101 |
show_download_button = False)
|
|
|
|
| 102 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 103 |
chatbot.launch()
|
| 104 |
chatbot.chatbot.update([(None, "Hey! I’m your Gen-Z watch buddy \nI help you find your next favorite TV show based on what you have liked before, your age, and your favorite genre. Just say what you're into!")])
|