Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def predict(user_input):
|
|
10 |
result = client.predict(
|
11 |
user_input,
|
12 |
system_prompt,
|
13 |
-
api_name="/
|
14 |
)
|
15 |
|
16 |
# Return the result from the API
|
@@ -18,7 +18,7 @@ def predict(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",
|
|
|
10 |
result = client.predict(
|
11 |
user_input,
|
12 |
system_prompt,
|
13 |
+
api_name="/predict"
|
14 |
)
|
15 |
|
16 |
# Return the result from the API
|
|
|
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",
|