Spaces:
Paused
Paused
Improve description
Browse filesFiles changed (2)
- app.py+13-25
- requirements.txt+2-1
39 unmodified lines40414243444584 unmodified lines130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163127 unmodified lines29129229329429529629729829930030111 unmodified lines31331431531631731831939 unmodified linesModel,ToolCallingAgent,)from smolagents.gradio_ui import pull_messages_from_step, handle_agent_output_types84 unmodified linesArchiveSearchTool(browser),TextInspectorTool(model, text_limit),]text_webbrowser_agent = ToolCallingAgent(model=model,tools=WEB_TOOLS,max_steps=20,verbosity_level=2,planning_interval=4,name="search_agent",description="""A team member that will search the internet to answer your question.Ask him for all your questions that require browsing the web.Provide him as much context as possible, in particular if you need to search on a specific timeframe!And don't hesitate to provide him with a complex search task, like finding a difference between two webpages.Your request must be a real sentence, not a google search! Like "Find me this information (...)" rather than a few keywords.""",provide_run_summary=True,managed_agent_prompt=MANAGED_AGENT_PROMPT+ """You can navigate to .txt online files.If a non-html page is in another format, especially .pdf or a Youtube video, use tool 'inspect_file_as_text' to inspect it.Additionally, if after some searching you find out that you need more information to answer the question, you can use `final_answer` with your request for clarification as argument to request for more information.""",)agent = CodeAgent(model=model,tools=[visualizer, ti_tool],max_steps=12,verbosity_level=2,additional_authorized_imports=AUTHORIZED_IMPORTS,planning_interval=4,managed_agents=[text_webbrowser_agent],)document_inspection_tool = TextInspectorTool(model, 20000)127 unmodified lines)def launch(self, **kwargs):with gr.Blocks(fill_height=True) as demo:stored_messages = gr.State([])file_uploads_log = gr.State([])chatbot = gr.Chatbot(label="Agent",type="messages",avatar_images=(None,11 unmodified lines[upload_file, file_uploads_log],[upload_status, file_uploads_log],)text_input = gr.Textbox(lines=1, label="Chat Message")text_input.submit(self.log_user_message,[text_input, file_uploads_log],39 unmodified lines4041424344454684 unmodified lines131132133134135136137138139140141142143144127 unmodified lines27227327427527627727827928028128228328428528628728828911 unmodified lines30130230330430530630739 unmodified linesModel,ToolCallingAgent,)from smolagents.agent_types import AgentText, AgentImage, AgentAudiofrom smolagents.gradio_ui import pull_messages_from_step, handle_agent_output_types84 unmodified linesArchiveSearchTool(browser),TextInspectorTool(model, text_limit),]agent = CodeAgent(model=model,tools=[visualizer] + WEB_TOOLS,max_steps=5,verbosity_level=2,additional_authorized_imports=AUTHORIZED_IMPORTS,planning_interval=4,)document_inspection_tool = TextInspectorTool(model, 20000)127 unmodified lines)def launch(self, **kwargs):with gr.Blocks(theme="ocean", fill_height=True) as demo:gr.Markdown("""# open Deep Research - free the AI agents!OpenAI just published [Deep Research](https://openai.com/index/introducing-deep-research/), a very nice assistant that can perform deep searches in file or the web to answer user requests.However, their agent has a huge downside: it's not open. So we've started a 24-hour rush to replicate and open-source it. Our resulting [open-Deep-Research agent](https://github.com/huggingface/smolagents/tree/main/examples/open_deep_research) took the #1 rank of any open submission on the GAIA leaderboard! ✨You can try a simplified version below. 👇""")stored_messages = gr.State([])file_uploads_log = gr.State([])chatbot = gr.Chatbot(label="open-Deep-Research",type="messages",avatar_images=(None,11 unmodified lines[upload_file, file_uploads_log],[upload_status, file_uploads_log],)text_input = gr.Textbox(lines=1, label="Your request")text_input.submit(self.log_user_message,[text_input, file_uploads_log],
36 unmodified lines3738394036 unmodified linespython-pptxtorchxlrdSpeechRecognition36 unmodified lines373839404136 unmodified linespython-pptxtorchxlrdSpeechRecognitionlitellm
app.py+13-25
requirements.txt+2-1