Update app.py
Browse files
app.py
CHANGED
|
@@ -315,8 +315,8 @@ APISR aims at restoring and enhancing low-quality low-resolution **anime** image
|
|
| 315 |
### 📹 New: Video processing runs in background queue - you can close the browser and it continues!
|
| 316 |
"""
|
| 317 |
|
| 318 |
-
# Create Gradio interface
|
| 319 |
-
with gr.Blocks(title="APISR - Anime Super Resolution"
|
| 320 |
|
| 321 |
gr.Markdown(MARKDOWN)
|
| 322 |
|
|
@@ -387,9 +387,6 @@ APISR aims at restoring and enhancing low-quality low-resolution **anime** image
|
|
| 387 |
fn=get_queue_status,
|
| 388 |
outputs=[queue_status]
|
| 389 |
)
|
| 390 |
-
|
| 391 |
-
# Auto-refresh every 5 seconds
|
| 392 |
-
demo.load(fn=get_queue_status, outputs=[queue_status], every=5)
|
| 393 |
|
| 394 |
# Tab 3: History
|
| 395 |
with gr.Tab("📜 History"):
|
|
@@ -411,14 +408,13 @@ APISR aims at restoring and enhancing low-quality low-resolution **anime** image
|
|
| 411 |
fn=clear_history,
|
| 412 |
outputs=[clear_status, history_display]
|
| 413 |
)
|
| 414 |
-
|
| 415 |
-
# Auto-load history on page load
|
| 416 |
-
demo.load(fn=get_history_display, outputs=[history_display])
|
| 417 |
|
| 418 |
-
# Launch
|
| 419 |
demo.queue(max_size=20)
|
| 420 |
demo.launch(
|
| 421 |
server_name="0.0.0.0",
|
| 422 |
server_port=7860,
|
| 423 |
-
share=False
|
|
|
|
|
|
|
| 424 |
)
|
|
|
|
| 315 |
### 📹 New: Video processing runs in background queue - you can close the browser and it continues!
|
| 316 |
"""
|
| 317 |
|
| 318 |
+
# Create Gradio interface - Gradio 6.0 compatible
|
| 319 |
+
with gr.Blocks(title="APISR - Anime Super Resolution") as demo:
|
| 320 |
|
| 321 |
gr.Markdown(MARKDOWN)
|
| 322 |
|
|
|
|
| 387 |
fn=get_queue_status,
|
| 388 |
outputs=[queue_status]
|
| 389 |
)
|
|
|
|
|
|
|
|
|
|
| 390 |
|
| 391 |
# Tab 3: History
|
| 392 |
with gr.Tab("📜 History"):
|
|
|
|
| 408 |
fn=clear_history,
|
| 409 |
outputs=[clear_status, history_display]
|
| 410 |
)
|
|
|
|
|
|
|
|
|
|
| 411 |
|
| 412 |
+
# Launch with Gradio 6.0 syntax
|
| 413 |
demo.queue(max_size=20)
|
| 414 |
demo.launch(
|
| 415 |
server_name="0.0.0.0",
|
| 416 |
server_port=7860,
|
| 417 |
+
share=False,
|
| 418 |
+
show_api=False,
|
| 419 |
+
theme=gr.themes.Soft() # Moved theme here per Gradio 6.0
|
| 420 |
)
|