Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- app.py +6 -2
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -186,7 +186,11 @@ with gr.Blocks(title="GSS DiffDock Engine") as demo:
|
|
| 186 |
|
| 187 |
# Launch with proper configuration for Hugging Face Spaces
|
| 188 |
if __name__ == "__main__":
|
| 189 |
-
|
| 190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
# Made with Bob
|
|
|
|
| 186 |
|
| 187 |
# Launch with proper configuration for Hugging Face Spaces
|
| 188 |
if __name__ == "__main__":
|
| 189 |
+
# Mount Gradio app to FastAPI
|
| 190 |
+
app = gr.mount_gradio_app(app, demo, path="/")
|
| 191 |
+
|
| 192 |
+
# Launch using uvicorn
|
| 193 |
+
import uvicorn
|
| 194 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 195 |
|
| 196 |
# Made with Bob
|
requirements.txt
CHANGED
|
@@ -9,4 +9,5 @@ pandas==2.2.1
|
|
| 9 |
pyyaml==6.0.1
|
| 10 |
scipy==1.12.0
|
| 11 |
networkx==3.2.1
|
| 12 |
-
fastapi==0.109.0
|
|
|
|
|
|
| 9 |
pyyaml==6.0.1
|
| 10 |
scipy==1.12.0
|
| 11 |
networkx==3.2.1
|
| 12 |
+
fastapi==0.109.0
|
| 13 |
+
uvicorn==0.27.0
|