David Tang
commited on
Commit
·
8f78a50
1
Parent(s):
4f1a45a
Add: Custom Dockerfile to ensure correct Gradio version
Browse files- Dockerfile +10 -0
- app.py +3 -3
- requirements.txt +1 -2
Dockerfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
+
|
| 3 |
+
WORKDIR /home/user/app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY . .
|
| 9 |
+
|
| 10 |
+
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -141,14 +141,14 @@ with gr.Blocks(
|
|
| 141 |
gr.Markdown(
|
| 142 |
"""
|
| 143 |
<div style='text-align: center; margin-top: 20px; padding: 10px; border-top: 1px solid #e0e0e0;'>
|
| 144 |
-
<a href='
|
| 145 |
</div>
|
| 146 |
""",
|
| 147 |
elem_id="footer"
|
| 148 |
)
|
| 149 |
|
| 150 |
-
with
|
| 151 |
-
|
| 152 |
|
| 153 |
if __name__ == "__main__":
|
| 154 |
demo.launch(favicon_path="assets/medical_cross_icon_144218.ico")
|
|
|
|
| 141 |
gr.Markdown(
|
| 142 |
"""
|
| 143 |
<div style='text-align: center; margin-top: 20px; padding: 10px; border-top: 1px solid #e0e0e0;'>
|
| 144 |
+
<a href='#' onclick='document.getElementById("docs").style.display="block"; return false;' style='text-decoration: none; color: #666;'>📚 View Technical Documentation</a>
|
| 145 |
</div>
|
| 146 |
""",
|
| 147 |
elem_id="footer"
|
| 148 |
)
|
| 149 |
|
| 150 |
+
with gr.Box(visible=False, elem_id="docs"):
|
| 151 |
+
docs.docs_demo.render()
|
| 152 |
|
| 153 |
if __name__ == "__main__":
|
| 154 |
demo.launch(favicon_path="assets/medical_cross_icon_144218.ico")
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
gradio>=5.33.0
|
| 2 |
httpx>=0.28.1
|
| 3 |
-
Pillow>=11.2.0
|
| 4 |
-
python-multipart>=0.0.20
|
|
|
|
| 1 |
gradio>=5.33.0
|
| 2 |
httpx>=0.28.1
|
| 3 |
+
Pillow>=11.2.0
|
|
|