Spaces:
Runtime error
Runtime error
Commit
·
d705db0
1
Parent(s):
1867217
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,7 @@ def generate_response(user_prompt):
|
|
34 |
iface = gr.Interface(fn=generate_response,
|
35 |
inputs=[gr.components.Textbox( label="prompt",
|
36 |
value='Who is the target population for Abdominal Aortic Aneurysm (AAA) screening?')],
|
37 |
-
outputs=[gr.JSON(label="category")
|
38 |
-
gr.JSON(label="Detect Prompt Category")]
|
39 |
)
|
40 |
|
41 |
# Start the Gradio interface
|
|
|
34 |
iface = gr.Interface(fn=generate_response,
|
35 |
inputs=[gr.components.Textbox( label="prompt",
|
36 |
value='Who is the target population for Abdominal Aortic Aneurysm (AAA) screening?')],
|
37 |
+
outputs=[gr.JSON(label="category")]
|
|
|
38 |
)
|
39 |
|
40 |
# Start the Gradio interface
|