Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -47,14 +47,13 @@ def generate_response(input_text):
|
|
47 |
except Exception as e:
|
48 |
return f"Error: {str(e)}"
|
49 |
|
50 |
-
# Create a Gradio interface
|
51 |
iface = gr.Interface(
|
52 |
fn=generate_response,
|
53 |
inputs="text",
|
54 |
outputs="text",
|
55 |
title="ContactDoctor Medical Assistant",
|
56 |
-
description="Provide input symptoms or queries and get AI-powered medical advice."
|
57 |
-
enable_api=True # Enables API for external calls
|
58 |
)
|
59 |
|
60 |
# Launch the Gradio app
|
|
|
47 |
except Exception as e:
|
48 |
return f"Error: {str(e)}"
|
49 |
|
50 |
+
# Create a Gradio interface
|
51 |
iface = gr.Interface(
|
52 |
fn=generate_response,
|
53 |
inputs="text",
|
54 |
outputs="text",
|
55 |
title="ContactDoctor Medical Assistant",
|
56 |
+
description="Provide input symptoms or queries and get AI-powered medical advice."
|
|
|
57 |
)
|
58 |
|
59 |
# Launch the Gradio app
|