Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ from smolagents import CodeAgent
|
|
13 |
from smolagents.monitoring import LogLevel
|
14 |
from smolagents.gradio_ui import GradioUI, stream_to_gradio
|
15 |
from model_replay import FakeModelReplayLog
|
|
|
16 |
|
17 |
from e2bqwen import QwenVLAPIModel, E2BVisionAgent
|
18 |
|
@@ -547,6 +548,15 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js) as demo:
|
|
547 |
#Storing session hash in a state variable
|
548 |
session_hash_state = gr.State(None)
|
549 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
with gr.Row():
|
551 |
sandbox_html = gr.HTML(
|
552 |
value=sandbox_html_template.format(
|
|
|
13 |
from smolagents.monitoring import LogLevel
|
14 |
from smolagents.gradio_ui import GradioUI, stream_to_gradio
|
15 |
from model_replay import FakeModelReplayLog
|
16 |
+
from gradio_modal import Modal
|
17 |
|
18 |
from e2bqwen import QwenVLAPIModel, E2BVisionAgent
|
19 |
|
|
|
548 |
#Storing session hash in a state variable
|
549 |
session_hash_state = gr.State(None)
|
550 |
|
551 |
+
with Modal(visible=True) as modal:
|
552 |
+
gr.Markdown("""### Welcome to our Computer agent demo
|
553 |
+
Welcome! In this app, you'll be able to interact with an agent powered by smolagents and Qwen-VL: type a task in the left sidebar, click the button, and see the agent trying to solve your task.
|
554 |
+
|
555 |
+
_Please note that we store the tasks given to this agent. Do not put any confidential information!_
|
556 |
+
|
557 |
+
_You can reach out at @hf.co to request deletion of information._
|
558 |
+
""")
|
559 |
+
|
560 |
with gr.Row():
|
561 |
sandbox_html = gr.HTML(
|
562 |
value=sandbox_html_template.format(
|