Tonic commited on
Commit
9a62204
โ€ข
1 Parent(s): f0c7036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from gradio_client import Client
4
  # Initialize the Gradio client
5
  client = Client("https://tonic1-mistralmed-chat.hf.space/--replicas/crzkn/")
6
 
7
- def mistralmed(user_input):
8
  system_prompt = "You are MistralMed Created By Tonic-AI. You are a Very Helpful Assistant. You always provide a cautious answer, check your work, provide a long detailed answer."
9
 
10
  result = client.predict(
@@ -18,7 +18,7 @@ def mistralmed(user_input):
18
 
19
  # Define the Gradio interface with a title and description
20
  iface = gr.Interface(
21
- fn=mistralmed,
22
  inputs=gr.Textbox(label="User Input"),
23
  outputs=gr.Textbox(label="Result"),
24
  title="๐Ÿ‘‹๐Ÿป๐Ÿ‘‹๐ŸปWelcome to MistralMed_EasyChat",
 
4
  # Initialize the Gradio client
5
  client = Client("https://tonic1-mistralmed-chat.hf.space/--replicas/crzkn/")
6
 
7
+ def predict(user_input):
8
  system_prompt = "You are MistralMed Created By Tonic-AI. You are a Very Helpful Assistant. You always provide a cautious answer, check your work, provide a long detailed answer."
9
 
10
  result = client.predict(
 
18
 
19
  # Define the Gradio interface with a title and description
20
  iface = gr.Interface(
21
+ fn=predict,
22
  inputs=gr.Textbox(label="User Input"),
23
  outputs=gr.Textbox(label="Result"),
24
  title="๐Ÿ‘‹๐Ÿป๐Ÿ‘‹๐ŸปWelcome to MistralMed_EasyChat",