Spaces:
No application file
No application file
Fix Hugging Face Spaces deployment: enhance app.py, optimize Dockerfile, add main.py alternative
113ef3e Download TextGen/__init__.py from sccastillo/researcher: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/sccastillo/researcher/resolve/main/TextGen/__init__.py
- Command line
-
hf download hf://spaces/sccastillo/researcher/TextGen/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/sccastillo/researcher/resolve/main/TextGen/__init__.py
252 Bytes
| from fastapi import FastAPI | |
| app = FastAPI( | |
| title="FastAPI TextGen with OpenAI", | |
| description="Simple FastAPI agent for answering questions using OpenAI", | |
| version="1.0.0" | |
| ) | |
| # Import router to register endpoints | |
| from TextGen import router | |