WatNeru commited on
Commit
40cc070
·
1 Parent(s): 8bb5b53

log出力変更戻す

Browse files
Files changed (2) hide show
  1. app.py +1 -7
  2. requirements.txt +3 -0
app.py CHANGED
@@ -216,12 +216,6 @@ def build_word_tree(payload: WordTreeRequest) -> List[WordTreeResponse]:
216
  if __name__ == "__main__":
217
  import uvicorn
218
 
219
- uvicorn.run(
220
- app,
221
- host="0.0.0.0",
222
- port=7860,
223
- log_level=os.getenv("UVICORN_LOG_LEVEL", "warning"),
224
- access_log=os.getenv("UVICORN_ACCESS_LOG", "false").lower() == "true",
225
- )
226
 
227
 
 
216
  if __name__ == "__main__":
217
  import uvicorn
218
 
219
+ uvicorn.run(app, host="0.0.0.0", port=7860)
 
 
 
 
 
 
220
 
221
 
requirements.txt CHANGED
@@ -24,5 +24,8 @@ uvicorn>=0.30.0
24
  # Model management
25
  huggingface-hub>=0.24.0
26
 
 
 
 
27
  # その他
28
  typing-extensions>=4.0.0
 
24
  # Model management
25
  huggingface-hub>=0.24.0
26
 
27
+ # Hugging Face Spaces
28
+ spaces
29
+
30
  # その他
31
  typing-extensions>=4.0.0