Miquel Farré commited on
Commit
55bc851
·
1 Parent(s): 74c93f6
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import os
3
  import shutil
4
  from e2b_desktop import Sandbox
5
- from huggingface_hub import upload_folder
6
  from smolagents.monitoring import LogLevel
7
  from textwrap import dedent
8
 
@@ -17,6 +17,7 @@ if not os.path.exists(TMP_DIR):
17
  os.makedirs(TMP_DIR)
18
 
19
  model = QwenVLAPIModel()
 
20
 
21
  custom_css = """
22
  /* Your existing CSS */
 
2
  import os
3
  import shutil
4
  from e2b_desktop import Sandbox
5
+ from huggingface_hub import upload_folder, login
6
  from smolagents.monitoring import LogLevel
7
  from textwrap import dedent
8
 
 
17
  os.makedirs(TMP_DIR)
18
 
19
  model = QwenVLAPIModel()
20
+ login(token=os.getenv("HUGGINGFACE_API_KEY"))
21
 
22
  custom_css = """
23
  /* Your existing CSS */