Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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=
|
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",
|