Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
eba4da7
1
Parent(s): 4c8ec88
Claude Code: de-Gradio cleanup - pure FastAPI for Cain
Browse files- Remove gradio from requirements.txt
- Update Dockerfile to use uvicorn directly
- Create clean FastAPI app.py with GET / and POST /api/interact
- Remove GRADIO_SERVER_NAME/PORT, use PORT and UVICORN_HOST instead
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Dockerfile +2 -3
- app.py +0 -0
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -7,11 +7,10 @@ COPY requirements.txt .
|
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
COPY app.py .
|
| 10 |
-
COPY gradio_dashboard.py .
|
| 11 |
-
COPY scripts scripts/
|
| 12 |
COPY openclaw.json .
|
| 13 |
|
| 14 |
ENV PORT=7860
|
|
|
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
-
CMD ["
|
|
|
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
COPY app.py .
|
|
|
|
|
|
|
| 10 |
COPY openclaw.json .
|
| 11 |
|
| 12 |
ENV PORT=7860
|
| 13 |
+
ENV UVICORN_HOST=0.0.0.0
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
gradio>=4.0.0
|
| 2 |
fastapi>=0.104.0
|
| 3 |
uvicorn[standard]>=0.24.0
|
| 4 |
huggingface_hub>=0.24.5
|
|
|
|
|
|
|
| 1 |
fastapi>=0.104.0
|
| 2 |
uvicorn[standard]>=0.24.0
|
| 3 |
huggingface_hub>=0.24.5
|