Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -333,11 +333,9 @@ with gr.Blocks(title="TRIBE V2 Brain Prediction", theme=gr.themes.Base(
|
|
| 333 |
with gr.Tab("📝 Text"):
|
| 334 |
t_in = gr.Textbox(label="Content", lines=5, placeholder="Paste script or hook...")
|
| 335 |
t_btn = gr.Button("🧠 Analyze", variant="primary")
|
| 336 |
-
|
| 337 |
-
t_out = gr.Textbox(label="Scores", lines=10)
|
| 338 |
-
t_img = gr.Image(label="Brain Radar", type="filepath")
|
| 339 |
t_ins = gr.Textbox(label="💡 Insight")
|
| 340 |
-
t_btn.click(
|
| 341 |
|
| 342 |
with gr.Tab("🎬 Video"):
|
| 343 |
gr.Markdown("Upload a video — audio is transcribed and scored. ~30-60s on GPU.")
|
|
|
|
| 333 |
with gr.Tab("📝 Text"):
|
| 334 |
t_in = gr.Textbox(label="Content", lines=5, placeholder="Paste script or hook...")
|
| 335 |
t_btn = gr.Button("🧠 Analyze", variant="primary")
|
| 336 |
+
t_out = gr.Textbox(label="Scores", lines=10)
|
|
|
|
|
|
|
| 337 |
t_ins = gr.Textbox(label="💡 Insight")
|
| 338 |
+
t_btn.click(score_text_safe, [t_in], [t_out, t_ins], api_name="predict")
|
| 339 |
|
| 340 |
with gr.Tab("🎬 Video"):
|
| 341 |
gr.Markdown("Upload a video — audio is transcribed and scored. ~30-60s on GPU.")
|