mgetz commited on
Commit
718dd1b
·
verified ·
1 Parent(s): aa80128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import torch
6
  import gradio as gr
7
  import random
8
 
9
- client=InferenceClient("HuggingFaceH4/zephyr-7b-beta")
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()