PierreHanna commited on
Commit
7c1d20a
1 Parent(s): 0423904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import gradio as gr
8
  import numpy as np
9
  import faiss
10
  import yt_dlp
 
11
  from huggingface_hub import hf_hub_download
12
 
13
  embed_html1 = '<iframe width="560" height="315" src="https://www.youtube.com/embed/'
@@ -25,7 +26,7 @@ python_path = hf_hub_download(repo_id='PierreHanna/TextRetrieval', repo_type="sp
25
  #python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
26
  # use_auth_token=os.environ['TOKEN'])
27
  print(python_path)
28
- sys.path.append(os.environ['PRIVATE_DIR'])
29
  from models import *
30
 
31
  def download_audio_(link):
 
8
  import numpy as np
9
  import faiss
10
  import yt_dlp
11
+ import sys
12
  from huggingface_hub import hf_hub_download
13
 
14
  embed_html1 = '<iframe width="560" height="315" src="https://www.youtube.com/embed/'
 
26
  #python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
27
  # use_auth_token=os.environ['TOKEN'])
28
  print(python_path)
29
+ #sys.path.append(os.environ['PRIVATE_DIR'])
30
  from models import *
31
 
32
  def download_audio_(link):