somebeast commited on
Commit
2bdcae7
·
verified ·
1 Parent(s): 0267272

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- with gr.Row():
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(score_text_with_chart, [t_in], [t_out, t_img, t_ins], api_name="predict")
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.")