user1729 commited on
Commit
642d3cd
·
1 Parent(s): c22866b

Remove __main__ uvicorn.run block for Hugging Face Space

Browse files
Files changed (1) hide show
  1. app/main.py +1 -3
app/main.py CHANGED
@@ -166,6 +166,4 @@ async def health_check():
166
  except Exception as e:
167
  raise HTTPException(status_code=500, detail=str(e))
168
 
169
- if __name__ == "__main__":
170
- import uvicorn
171
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
166
  except Exception as e:
167
  raise HTTPException(status_code=500, detail=str(e))
168
 
169
+