Spaces:
Sleeping
Sleeping
Commit
·
745695e
1
Parent(s):
6f17d54
Update app.py
Browse files
app.py
CHANGED
@@ -258,6 +258,8 @@ run_button_component = gr.Button(value="Run", variant="primary", scale=1)
|
|
258 |
|
259 |
run_button_analysis = gr.Button(value="Run", variant="primary", scale=1)
|
260 |
|
|
|
|
|
261 |
temperature_component = gr.Slider(
|
262 |
minimum=0,
|
263 |
maximum=1.0,
|
@@ -493,12 +495,13 @@ with gr.Tab("Introduction"):
|
|
493 |
|
494 |
with gr.Tab("Your Portfolio"):
|
495 |
gr.HTML(TITLE_INTRO)
|
|
|
496 |
fn=crewai_process,
|
497 |
inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
|
498 |
outputs="text",
|
499 |
title="CrewAI on Gemini (Blog Post Writer)",
|
500 |
description="Input a research topic to get a comprehensive analysis (in logs) and a blog post draft (in output)."
|
501 |
-
|
502 |
with gr.Blocks() as demo:
|
503 |
with gr.Tab("Portfolio Analysis"):
|
504 |
with gr.Blocks() as app:
|
|
|
258 |
|
259 |
run_button_analysis = gr.Button(value="Run", variant="primary", scale=1)
|
260 |
|
261 |
+
run_button_crewai = gr.Button(value="Run", variant="primary", scale=1)
|
262 |
+
|
263 |
temperature_component = gr.Slider(
|
264 |
minimum=0,
|
265 |
maximum=1.0,
|
|
|
495 |
|
496 |
with gr.Tab("Your Portfolio"):
|
497 |
gr.HTML(TITLE_INTRO)
|
498 |
+
run_button_crewai.click(
|
499 |
fn=crewai_process,
|
500 |
inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
|
501 |
outputs="text",
|
502 |
title="CrewAI on Gemini (Blog Post Writer)",
|
503 |
description="Input a research topic to get a comprehensive analysis (in logs) and a blog post draft (in output)."
|
504 |
+
)
|
505 |
with gr.Blocks() as demo:
|
506 |
with gr.Tab("Portfolio Analysis"):
|
507 |
with gr.Blocks() as app:
|