Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -620,12 +620,12 @@ def run_diagnostics():
|
|
620 |
return "\n".join(lines)
|
621 |
|
622 |
with gr.Blocks(css=THEME_CSS, fill_height=True) as demo:
|
623 |
-
gr.HTML("<h1 class='neon-title' style='font-size:42px;margin:8px 0;'>
|
624 |
|
625 |
with gr.Tab("Manual Claims"):
|
626 |
with gr.Row():
|
627 |
with gr.Column(scale=1):
|
628 |
-
claims_box = gr.Textbox(label="Claims (one per line)", lines=8, placeholder="e.g.
|
629 |
with gr.Row():
|
630 |
use_web = gr.Checkbox(value=True, label="Use Web retrieval")
|
631 |
use_wiki = gr.Checkbox(value=True, label="Use Wikipedia")
|
@@ -660,9 +660,6 @@ with gr.Blocks(css=THEME_CSS, fill_height=True) as demo:
|
|
660 |
inputs=[video_upload, video_url, whisper_model, asr_language, ocr_langs, fps, max_ocr_images],
|
661 |
outputs=[asr_out, ocr_out, agg_out, sugg_out, to_manual])
|
662 |
|
663 |
-
|
664 |
-
diag_btn = gr.Button("Run Environment Checks", elem_classes=["neon-btn"])
|
665 |
-
diag_out = gr.Textbox(label="Diagnostics", lines=24, elem_classes=["glass"])
|
666 |
-
diag_btn.click(run_diagnostics, inputs=[], outputs=[diag_out])
|
667 |
|
668 |
demo.launch()
|
|
|
620 |
return "\n".join(lines)
|
621 |
|
622 |
with gr.Blocks(css=THEME_CSS, fill_height=True) as demo:
|
623 |
+
gr.HTML("<h1 class='neon-title' style='font-size:42px;margin:8px 0;'>Claim Checker</h1><p style='opacity:.75;margin:-6px 0 18px;'>Make every claim earn its proof.</p>")
|
624 |
|
625 |
with gr.Tab("Manual Claims"):
|
626 |
with gr.Row():
|
627 |
with gr.Column(scale=1):
|
628 |
+
claims_box = gr.Textbox(label="Claims (one per line)", lines=8, placeholder="e.g. 5G towers caused COVID-19", elem_classes=["glass"])
|
629 |
with gr.Row():
|
630 |
use_web = gr.Checkbox(value=True, label="Use Web retrieval")
|
631 |
use_wiki = gr.Checkbox(value=True, label="Use Wikipedia")
|
|
|
660 |
inputs=[video_upload, video_url, whisper_model, asr_language, ocr_langs, fps, max_ocr_images],
|
661 |
outputs=[asr_out, ocr_out, agg_out, sugg_out, to_manual])
|
662 |
|
663 |
+
|
|
|
|
|
|
|
664 |
|
665 |
demo.launch()
|