Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
import gradio as gr
|
| 7 |
import random
|
| 8 |
|
| 9 |
-
client=InferenceClient("
|
| 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("physics_info.txt", "r", encoding="utf-8") as file:
|
|
@@ -135,5 +135,5 @@ def respond(message, history):
|
|
| 135 |
print(response)
|
| 136 |
return response['choices'][0]['message']['content'].strip()
|
| 137 |
|
| 138 |
-
chatbot = gr.ChatInterface(respond, type="messages")
|
| 139 |
chatbot.launch()
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
import random
|
| 8 |
|
| 9 |
+
client=InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
|
| 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("physics_info.txt", "r", encoding="utf-8") as file:
|
|
|
|
| 135 |
print(response)
|
| 136 |
return response['choices'][0]['message']['content'].strip()
|
| 137 |
|
| 138 |
+
chatbot = gr.ChatInterface(respond, type="messages", )
|
| 139 |
chatbot.launch()
|