m-ric HF Staff commited on
Commit
0c984ad
·
1 Parent(s): 19d4121

Move logos to bottom

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -3,13 +3,15 @@ import os
3
  import json
4
  import shutil
5
  import traceback
6
- from e2b_desktop import Sandbox
7
- from huggingface_hub import upload_folder, login
8
- from smolagents.monitoring import LogLevel
9
- from smolagents.gradio_ui import GradioUI, stream_to_gradio
10
  from textwrap import dedent
11
  import time
12
  from threading import Timer
 
 
 
 
 
 
13
 
14
 
15
  from e2bqwen import QwenVLAPIModel, E2BVisionAgent
@@ -143,8 +145,7 @@ custom_css = """
143
  }
144
  """.replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
145
 
146
- header_html="""
147
- <h2 style="text-align: center">GUI Agent assistant</h2>
148
  <h3 style="text-align: center"><i>Powered by:</i></h2>
149
  <div class="logo-container">
150
  <a class="logo-item" href="https://github.com/e2b-dev/desktop">
@@ -537,10 +538,7 @@ with gr.Blocks(css=custom_css, js=custom_js) as demo:
537
  #Storing session hash in a state variable
538
  session_hash_state = gr.State(None)
539
 
540
- header_html = gr.HTML(
541
- value=header_html,
542
- label="Header"
543
- )
544
 
545
  sandbox_html = gr.HTML(
546
  value=sandbox_html_template.format(
@@ -603,7 +601,11 @@ with gr.Blocks(css=custom_css, js=custom_js) as demo:
603
  resizeable=True,
604
  scale=1,
605
  )
606
- from smolagents import CodeAgent
 
 
 
 
607
  agent_ui = EnrichedGradioUI(CodeAgent(tools=[], model=None, name="ok", description="ok"))
608
 
609
  def read_log_content(log_file, tail=4):
 
3
  import json
4
  import shutil
5
  import traceback
 
 
 
 
6
  from textwrap import dedent
7
  import time
8
  from threading import Timer
9
+ from huggingface_hub import upload_folder, login
10
+ from e2b_desktop import Sandbox
11
+
12
+ from smolagents import CodeAgent
13
+ from smolagents.monitoring import LogLevel
14
+ from smolagents.gradio_ui import GradioUI, stream_to_gradio
15
 
16
 
17
  from e2bqwen import QwenVLAPIModel, E2BVisionAgent
 
145
  }
146
  """.replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
147
 
148
+ footer_html="""
 
149
  <h3 style="text-align: center"><i>Powered by:</i></h2>
150
  <div class="logo-container">
151
  <a class="logo-item" href="https://github.com/e2b-dev/desktop">
 
538
  #Storing session hash in a state variable
539
  session_hash_state = gr.State(None)
540
 
541
+ gr.Markdown("# GUI Agent assistant")
 
 
 
542
 
543
  sandbox_html = gr.HTML(
544
  value=sandbox_html_template.format(
 
601
  resizeable=True,
602
  scale=1,
603
  )
604
+
605
+ footer_html = gr.HTML(
606
+ value=footer_html,
607
+ label="Header"
608
+ )
609
  agent_ui = EnrichedGradioUI(CodeAgent(tools=[], model=None, name="ok", description="ok"))
610
 
611
  def read_log_content(log_file, tail=4):