Spaces:
Running
Running
Banjo Obayomi commited on
Commit ·
1db2485
1
Parent(s): 44d7807
updated with static
Browse files- app.py +1 -2
- static/.gitkeep +0 -0
- static/output/.gitkeep +0 -0
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def load_existing_game(session_id):
|
|
| 105 |
# Create HTML with iframe
|
| 106 |
gradio_html = f"""
|
| 107 |
<div style="display: flex; flex-direction: column; align-items: center;">
|
| 108 |
-
<iframe width="1280" height="720" src="
|
| 109 |
<p style="text-align: center; margin-top: 10px;">
|
| 110 |
Instructions: Use your mouse to interact with the game. Click to advance dialogue.
|
| 111 |
</p>
|
|
@@ -239,7 +239,6 @@ app = FastAPI()
|
|
| 239 |
|
| 240 |
# Mount static files
|
| 241 |
app.mount("/static", StaticFiles(directory="static", html=True), name="static")
|
| 242 |
-
|
| 243 |
# Mount Gradio app
|
| 244 |
app = gr.mount_gradio_app(app, demo, "/")
|
| 245 |
|
|
|
|
| 105 |
# Create HTML with iframe
|
| 106 |
gradio_html = f"""
|
| 107 |
<div style="display: flex; flex-direction: column; align-items: center;">
|
| 108 |
+
<iframe width="1280" height="720" src="static/output/{session_id}/index.html?v={timestamp}"></iframe>
|
| 109 |
<p style="text-align: center; margin-top: 10px;">
|
| 110 |
Instructions: Use your mouse to interact with the game. Click to advance dialogue.
|
| 111 |
</p>
|
|
|
|
| 239 |
|
| 240 |
# Mount static files
|
| 241 |
app.mount("/static", StaticFiles(directory="static", html=True), name="static")
|
|
|
|
| 242 |
# Mount Gradio app
|
| 243 |
app = gr.mount_gradio_app(app, demo, "/")
|
| 244 |
|
static/.gitkeep
ADDED
|
File without changes
|
static/output/.gitkeep
ADDED
|
File without changes
|