Spaces:
Runtime error
Runtime error
fixed api_name being in wrong place
Browse files
app.py
CHANGED
|
@@ -66,7 +66,8 @@ with gr.Blocks() as demo:
|
|
| 66 |
btn_pred.click(
|
| 67 |
fn=lambda doc_id, mode: assess_lifestyle(doc_id) if mode == "lifestyle" else assess_audio(doc_id),
|
| 68 |
inputs=[doc_id_pred, mode_pred],
|
| 69 |
-
outputs=output_pred
|
|
|
|
| 70 |
)
|
| 71 |
|
| 72 |
# News Tab
|
|
@@ -75,8 +76,7 @@ with gr.Blocks() as demo:
|
|
| 75 |
mode_news = gr.Radio(
|
| 76 |
choices=["patientnews", "doctornews"],
|
| 77 |
value="patientnews",
|
| 78 |
-
label="News Audience"
|
| 79 |
-
api_name="assess_risk"
|
| 80 |
)
|
| 81 |
output_news = gr.JSON()
|
| 82 |
btn_news = gr.Button("Fetch News")
|
|
|
|
| 66 |
btn_pred.click(
|
| 67 |
fn=lambda doc_id, mode: assess_lifestyle(doc_id) if mode == "lifestyle" else assess_audio(doc_id),
|
| 68 |
inputs=[doc_id_pred, mode_pred],
|
| 69 |
+
outputs=output_pred,
|
| 70 |
+
api_name="assess_risk"
|
| 71 |
)
|
| 72 |
|
| 73 |
# News Tab
|
|
|
|
| 76 |
mode_news = gr.Radio(
|
| 77 |
choices=["patientnews", "doctornews"],
|
| 78 |
value="patientnews",
|
| 79 |
+
label="News Audience"
|
|
|
|
| 80 |
)
|
| 81 |
output_news = gr.JSON()
|
| 82 |
btn_news = gr.Button("Fetch News")
|