Spaces:
Paused
Paused
Download simple.py from gboyehigh/deep_research: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/gboyehigh/deep_research/resolve/main/simple.py
- Command line
-
hf download hf://spaces/gboyehigh/deep_research/simple.py
-
curl -L -o simple.py https://huggingface.co/spaces/gboyehigh/deep_research/resolve/main/simple.py
634 Bytes
| import gradio as gr | |
| from dotenv import load_dotenv | |
| from research_manager import ResearchManager | |
| load_dotenv(override=True) | |
| async def run(query: str): | |
| async for status_update in ResearchManager().run(query): | |
| yield status_update | |
| with gr.Blocks() as ui: | |
| query_textbox = gr.Textbox(label="What topic would you like to research?") | |
| run_button = gr.Button("Run", variant="primary") | |
| report = gr.Markdown(label="Report") | |
| run_button.click(run, inputs=query_textbox, outputs=report) | |
| query_textbox.submit(run, inputs=query_textbox, outputs=report) | |
| ui.launch(theme=gr.themes.Default(primary_hue="sky")) | |