xcx0902 commited on
Commit
38a6743
·
verified ·
1 Parent(s): 79231c2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import sqlite3
4
  import threading
5
  from pydantic import BaseModel
6
  from fastapi import FastAPI
 
7
  from huggingface_hub import HfApi
8
  from filesystem import upload, download
9
 
@@ -27,7 +28,7 @@ def Connect():
27
  thread = threading.Thread(target=Upload)
28
  thread.start()
29
 
30
- @app.get("/")
31
  def HuggingFaceSpaceRoot():
32
  return ""
33
 
 
4
  import threading
5
  from pydantic import BaseModel
6
  from fastapi import FastAPI
7
+ from fastapi.responses import HTMLResponse
8
  from huggingface_hub import HfApi
9
  from filesystem import upload, download
10
 
 
28
  thread = threading.Thread(target=Upload)
29
  thread.start()
30
 
31
+ @app.get("/", response_class=HTMLResponse)
32
  def HuggingFaceSpaceRoot():
33
  return ""
34