Spaces:
Running
on
T4
Running
on
T4
fixed uis
Browse files
app.py
CHANGED
@@ -267,7 +267,8 @@ def solve_problem_gradio(user_query, user_image, max_steps=10, max_time=60, api_
|
|
267 |
|
268 |
def main(args):
|
269 |
#################### Gradio Interface ####################
|
270 |
-
with gr.Blocks(
|
|
|
271 |
# Theming https://www.gradio.app/guides/theming-guide
|
272 |
|
273 |
gr.Markdown("# π Chat with OctoTools: An Agentic Framework for Complex Reasoning") # Title
|
@@ -357,7 +358,7 @@ def main(args):
|
|
357 |
with gr.Row(elem_id="buttons") as button_row:
|
358 |
upvote_btn = gr.Button(value="π Upvote", interactive=True, variant="primary")
|
359 |
downvote_btn = gr.Button(value="π Downvote", interactive=True, variant="primary")
|
360 |
-
stop_btn = gr.Button(value="βοΈ Stop", interactive=True
|
361 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=True)
|
362 |
|
363 |
with gr.Row():
|
@@ -378,9 +379,7 @@ def main(args):
|
|
378 |
|
379 |
[None, "What are the research trends in tool agents with large language models for scientific discovery? Please consider the latest literature from ArXiv, PubMed, Nature, and news sources.", ["ArXiv_Paper_Searcher_Tool", "Pubmed_Search_Tool", "Nature_News_Fetcher_Tool"]],
|
380 |
|
381 |
-
[ "examples/rotting_kiwi.png", "You are given a 3 x 3 grid in which each cell can contain either no kiwi, one fresh kiwi, or one rotten kiwi. Every minute, any fresh kiwi that is 4-directionally adjacent to a rotten kiwi also becomes rotten. What is the minimum number of minutes that must elapse until no cell has a fresh kiwi?", ["Image_Captioner_Tool"]]
|
382 |
-
|
383 |
-
["examples/lung.jpg", "What is the organ on the left side of this image?", ["Image_Captioner_Tool"]],
|
384 |
|
385 |
],
|
386 |
inputs=[user_image, user_query, enabled_tools],
|
|
|
267 |
|
268 |
def main(args):
|
269 |
#################### Gradio Interface ####################
|
270 |
+
with gr.Blocks() as demo:
|
271 |
+
# with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
272 |
# Theming https://www.gradio.app/guides/theming-guide
|
273 |
|
274 |
gr.Markdown("# π Chat with OctoTools: An Agentic Framework for Complex Reasoning") # Title
|
|
|
358 |
with gr.Row(elem_id="buttons") as button_row:
|
359 |
upvote_btn = gr.Button(value="π Upvote", interactive=True, variant="primary")
|
360 |
downvote_btn = gr.Button(value="π Downvote", interactive=True, variant="primary")
|
361 |
+
stop_btn = gr.Button(value="βοΈ Stop", interactive=True")
|
362 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=True)
|
363 |
|
364 |
with gr.Row():
|
|
|
379 |
|
380 |
[None, "What are the research trends in tool agents with large language models for scientific discovery? Please consider the latest literature from ArXiv, PubMed, Nature, and news sources.", ["ArXiv_Paper_Searcher_Tool", "Pubmed_Search_Tool", "Nature_News_Fetcher_Tool"]],
|
381 |
|
382 |
+
[ "examples/rotting_kiwi.png", "You are given a 3 x 3 grid in which each cell can contain either no kiwi, one fresh kiwi, or one rotten kiwi. Every minute, any fresh kiwi that is 4-directionally adjacent to a rotten kiwi also becomes rotten. What is the minimum number of minutes that must elapse until no cell has a fresh kiwi?", ["Image_Captioner_Tool"]]
|
|
|
|
|
383 |
|
384 |
],
|
385 |
inputs=[user_image, user_query, enabled_tools],
|