MatthiasC commited on
Commit
02ffa1d
1 Parent(s): 5fc9f83

Hub download test

Browse files
Files changed (2) hide show
  1. app.py +5 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -8,8 +8,12 @@ import streamlit as st
8
  from PIL import Image
9
 
10
  import requests
 
 
11
 
12
-
 
 
13
  def start_server():
14
  os.system("uvicorn server:app --port 8080 --host 0.0.0.0 --workers 1")
15
 
 
8
  from PIL import Image
9
 
10
  import requests
11
+ import logging
12
+ from huggingface_hub import hf_hub_download
13
 
14
+ logging.info("Start downloading")
15
+ hf_hub_download(repo_id="MatthiasC/dall-e-logo", filename="README.md")
16
+ logging.info("End downloading")
17
  def start_server():
18
  os.system("uvicorn server:app --port 8080 --host 0.0.0.0 --workers 1")
19
 
requirements.txt CHANGED
@@ -9,3 +9,4 @@ omegaconf
9
  git+https://github.com/openai/CLIP.git
10
  fastapi
11
  uvicorn
 
 
9
  git+https://github.com/openai/CLIP.git
10
  fastapi
11
  uvicorn
12
+ huggingface_hub