Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -44,8 +44,14 @@ def predict(texts):
|
|
| 44 |
|
| 45 |
# Gradio interface
|
| 46 |
gr.Interface(
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
).launch()
|
|
|
|
| 44 |
|
| 45 |
# Gradio interface
|
| 46 |
gr.Interface(
|
| 47 |
+
fn=predict,
|
| 48 |
+
inputs=gr.Textbox(
|
| 49 |
+
lines=10,
|
| 50 |
+
placeholder="Enter one or more texts (one per line)",
|
| 51 |
+
label="Input Texts"
|
| 52 |
+
),
|
| 53 |
+
outputs=gr.JSON(
|
| 54 |
+
label="Predicted Status & Scores"
|
| 55 |
+
),
|
| 56 |
+
title="Mindscape AI Therapist (Multi-text Support)"
|
| 57 |
).launch()
|