coldnasser commited on
Commit
be8cfaf
·
verified ·
1 Parent(s): f84c4ad

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -44,8 +44,14 @@ def predict(texts):
44
 
45
  # Gradio interface
46
  gr.Interface(
47
- fn=predict,
48
- inputs=gr.inputs.Textbox(lines=10, placeholder="Enter one or more texts (one per line)", label="Input Texts"),
49
- outputs="json",
50
- title="Mindscape AI Therapist (Multi-text Support)"
 
 
 
 
 
 
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()