Spaces:
Runtime error
Runtime error
Increase ZeroGPU duration to 120s and disable share
Browse files- Set @spaces.GPU(duration=120) to allow longer generation times
- Set share=False for production deployment
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -398,7 +398,7 @@ else:
|
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
-
@spaces.GPU(duration=
|
| 402 |
def generate_qr_code_unified(
|
| 403 |
prompt: str,
|
| 404 |
text_input: str,
|
|
@@ -2819,6 +2819,6 @@ if __name__ == "__main__" and not os.environ.get("QR_TESTING_MODE"):
|
|
| 2819 |
|
| 2820 |
# ARTISTIC QR TAB
|
| 2821 |
app.queue() # Required for gr.Progress() to work!
|
| 2822 |
-
app.launch(share=
|
| 2823 |
# Note: Automatic file cleanup via delete_cache not available in Gradio 5.49.1
|
| 2824 |
# Files will be cleaned up when the server is restarted
|
|
|
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
+
@spaces.GPU(duration=120)
|
| 402 |
def generate_qr_code_unified(
|
| 403 |
prompt: str,
|
| 404 |
text_input: str,
|
|
|
|
| 2819 |
|
| 2820 |
# ARTISTIC QR TAB
|
| 2821 |
app.queue() # Required for gr.Progress() to work!
|
| 2822 |
+
app.launch(share=False, mcp_server=True)
|
| 2823 |
# Note: Automatic file cleanup via delete_cache not available in Gradio 5.49.1
|
| 2824 |
# Files will be cleaned up when the server is restarted
|