Spaces:
Sleeping
Sleeping
databoysu commited on
Commit ·
43e60bf
1
Parent(s): e344eb3
huggingface add
Browse files- Dockerfile +2 -0
- app.py +2 -2
Dockerfile
CHANGED
|
@@ -46,6 +46,8 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
|
| 46 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 47 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 48 |
|
|
|
|
|
|
|
| 49 |
USER appuser
|
| 50 |
|
| 51 |
CMD ["sh", "-c", "cd /app/env && python app.py"]
|
|
|
|
| 46 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 47 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 48 |
|
| 49 |
+
EXPOSE 7860
|
| 50 |
+
|
| 51 |
USER appuser
|
| 52 |
|
| 53 |
CMD ["sh", "-c", "cd /app/env && python app.py"]
|
app.py
CHANGED
|
@@ -486,7 +486,7 @@ def run_agent(
|
|
| 486 |
yield code_view, _terminal_html(terminal_lines), status_html, score_value, rewards_md
|
| 487 |
|
| 488 |
|
| 489 |
-
with gr.Blocks(
|
| 490 |
gr.HTML(
|
| 491 |
"""
|
| 492 |
<div id='header-wrap'>
|
|
@@ -579,4 +579,4 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=CSS, title="TraceFix-RL Mission
|
|
| 579 |
|
| 580 |
if __name__ == "__main__":
|
| 581 |
_start_backend_server()
|
| 582 |
-
demo.queue().launch(server_name=GRADIO_HOST, server_port=GRADIO_PORT)
|
|
|
|
| 486 |
yield code_view, _terminal_html(terminal_lines), status_html, score_value, rewards_md
|
| 487 |
|
| 488 |
|
| 489 |
+
with gr.Blocks(title="TraceFix-RL Mission Control") as demo:
|
| 490 |
gr.HTML(
|
| 491 |
"""
|
| 492 |
<div id='header-wrap'>
|
|
|
|
| 579 |
|
| 580 |
if __name__ == "__main__":
|
| 581 |
_start_backend_server()
|
| 582 |
+
demo.queue().launch(server_name=GRADIO_HOST, server_port=GRADIO_PORT, theme=gr.themes.Monochrome(), css=CSS)
|