Update app.py
Browse files
app.py
CHANGED
|
@@ -565,7 +565,7 @@ fetch_interface = gr.Interface(
|
|
| 565 |
gr.Slider(400, 12000, value=3000, step=100, label="Max Characters (body text)", scale=2, min_width=200),
|
| 566 |
gr.Slider(0, 100, value=20, step=1, label="Max Links", scale=1, min_width=150),
|
| 567 |
],
|
| 568 |
-
outputs=gr.Markdown(label="Extracted Summary"
|
| 569 |
title="Fetch Webpage",
|
| 570 |
description=(
|
| 571 |
"<div style=\"text-align:center\">Extract title, key metadata, readable text, and links from webpages. No noisy HTML.</div>"
|
|
@@ -591,7 +591,7 @@ concise_interface = gr.Interface(
|
|
| 591 |
gr.Checkbox(value=True, label="Dedupe by domain", scale=1, min_width=150),
|
| 592 |
gr.Slider(minimum=20, maximum=120, value=80, step=5, label="Max title chars", scale=1, min_width=150),
|
| 593 |
],
|
| 594 |
-
outputs=gr.Textbox(label="Results (JSONL)", interactive=False
|
| 595 |
title="DuckDuckGo Search",
|
| 596 |
description=(
|
| 597 |
"<div style=\"text-align:center\">Very concise web search to avoid unnecessary context. Emits JSONL with short keys (t,u[,s]). Defaults avoid snippets and duplicate domains.</div>"
|
|
@@ -612,7 +612,7 @@ concise_interface = gr.Interface(
|
|
| 612 |
code_interface = gr.Interface(
|
| 613 |
fn=Execute_Python,
|
| 614 |
inputs=gr.Code(label="Python Code", language="python", scale=1, min_width=400),
|
| 615 |
-
outputs=gr.Textbox(label="Output"
|
| 616 |
title="Python Code Executor",
|
| 617 |
description=(
|
| 618 |
"<div style=\"text-align:center\">Execute Python code and see the output.</div>"
|
|
@@ -636,7 +636,7 @@ kokoro_interface = gr.Interface(
|
|
| 636 |
gr.Slider(minimum=0.5, maximum=2.0, value=1.0, step=0.1, label="Speed", scale=1, min_width=150),
|
| 637 |
gr.Textbox(label="Voice", value="af_heart", placeholder="e.g., af_heart", scale=1, min_width=150),
|
| 638 |
],
|
| 639 |
-
outputs=gr.Audio(label="Audio", type="numpy"
|
| 640 |
title="Kokoro TTS",
|
| 641 |
description=(
|
| 642 |
"<div style=\"text-align:center\">Generate English speech with Kokoro-82M. 30 second max output. Runs on CPU or CUDA if available.</div>"
|
|
@@ -763,7 +763,7 @@ image_generation_interface = gr.Interface(
|
|
| 763 |
gr.Slider(minimum=64, maximum=1216, value=1024, step=32, label="Width", scale=1, min_width=150),
|
| 764 |
gr.Slider(minimum=64, maximum=1216, value=1024, step=32, label="Height", scale=1, min_width=150),
|
| 765 |
],
|
| 766 |
-
outputs=gr.Image(label="Generated Image"
|
| 767 |
title="Image Generation",
|
| 768 |
description=(
|
| 769 |
"<div style=\"text-align:center\">Generate images via Hugging Face Inference. "
|
|
@@ -942,7 +942,7 @@ video_generation_interface = gr.Interface(
|
|
| 942 |
gr.Slider(minimum=4, maximum=60, value=24, step=1, label="FPS", scale=1, min_width=120),
|
| 943 |
gr.Slider(minimum=1.0, maximum=10.0, value=4.0, step=0.5, label="Duration (s)", scale=1, min_width=150),
|
| 944 |
],
|
| 945 |
-
outputs=gr.Video(label="Generated Video"
|
| 946 |
title="Video Generation",
|
| 947 |
description=(
|
| 948 |
"<div style=\"text-align:center\">Generate short videos via Hugging Face Inference Providers. "
|
|
|
|
| 565 |
gr.Slider(400, 12000, value=3000, step=100, label="Max Characters (body text)", scale=2, min_width=200),
|
| 566 |
gr.Slider(0, 100, value=20, step=1, label="Max Links", scale=1, min_width=150),
|
| 567 |
],
|
| 568 |
+
outputs=gr.Markdown(label="Extracted Summary"),
|
| 569 |
title="Fetch Webpage",
|
| 570 |
description=(
|
| 571 |
"<div style=\"text-align:center\">Extract title, key metadata, readable text, and links from webpages. No noisy HTML.</div>"
|
|
|
|
| 591 |
gr.Checkbox(value=True, label="Dedupe by domain", scale=1, min_width=150),
|
| 592 |
gr.Slider(minimum=20, maximum=120, value=80, step=5, label="Max title chars", scale=1, min_width=150),
|
| 593 |
],
|
| 594 |
+
outputs=gr.Textbox(label="Results (JSONL)", interactive=False),
|
| 595 |
title="DuckDuckGo Search",
|
| 596 |
description=(
|
| 597 |
"<div style=\"text-align:center\">Very concise web search to avoid unnecessary context. Emits JSONL with short keys (t,u[,s]). Defaults avoid snippets and duplicate domains.</div>"
|
|
|
|
| 612 |
code_interface = gr.Interface(
|
| 613 |
fn=Execute_Python,
|
| 614 |
inputs=gr.Code(label="Python Code", language="python", scale=1, min_width=400),
|
| 615 |
+
outputs=gr.Textbox(label="Output"),
|
| 616 |
title="Python Code Executor",
|
| 617 |
description=(
|
| 618 |
"<div style=\"text-align:center\">Execute Python code and see the output.</div>"
|
|
|
|
| 636 |
gr.Slider(minimum=0.5, maximum=2.0, value=1.0, step=0.1, label="Speed", scale=1, min_width=150),
|
| 637 |
gr.Textbox(label="Voice", value="af_heart", placeholder="e.g., af_heart", scale=1, min_width=150),
|
| 638 |
],
|
| 639 |
+
outputs=gr.Audio(label="Audio", type="numpy"),
|
| 640 |
title="Kokoro TTS",
|
| 641 |
description=(
|
| 642 |
"<div style=\"text-align:center\">Generate English speech with Kokoro-82M. 30 second max output. Runs on CPU or CUDA if available.</div>"
|
|
|
|
| 763 |
gr.Slider(minimum=64, maximum=1216, value=1024, step=32, label="Width", scale=1, min_width=150),
|
| 764 |
gr.Slider(minimum=64, maximum=1216, value=1024, step=32, label="Height", scale=1, min_width=150),
|
| 765 |
],
|
| 766 |
+
outputs=gr.Image(label="Generated Image"),
|
| 767 |
title="Image Generation",
|
| 768 |
description=(
|
| 769 |
"<div style=\"text-align:center\">Generate images via Hugging Face Inference. "
|
|
|
|
| 942 |
gr.Slider(minimum=4, maximum=60, value=24, step=1, label="FPS", scale=1, min_width=120),
|
| 943 |
gr.Slider(minimum=1.0, maximum=10.0, value=4.0, step=0.5, label="Duration (s)", scale=1, min_width=150),
|
| 944 |
],
|
| 945 |
+
outputs=gr.Video(label="Generated Video"),
|
| 946 |
title="Video Generation",
|
| 947 |
description=(
|
| 948 |
"<div style=\"text-align:center\">Generate short videos via Hugging Face Inference Providers. "
|