Spaces:
Runtime error
Runtime error
measmonysuon
commited on
Commit
•
2f772ee
1
Parent(s):
44ec828
Update app.py
Browse files
app.py
CHANGED
@@ -66,8 +66,11 @@ def gradio_interface(prompt, resolution_key, user_chat_id):
|
|
66 |
return None, "User Chat ID cannot be blank. Please provide a valid User Chat ID or register with @supportBot to get UID."
|
67 |
|
68 |
# Request large hardware for image generation
|
69 |
-
api.request_space_hardware(repo_id='measmonysuon/DALLE-4K', hardware='
|
70 |
-
|
|
|
|
|
|
|
71 |
# Get GPU info
|
72 |
gpu_info = get_gpu_info()
|
73 |
|
|
|
66 |
return None, "User Chat ID cannot be blank. Please provide a valid User Chat ID or register with @supportBot to get UID."
|
67 |
|
68 |
# Request large hardware for image generation
|
69 |
+
api.request_space_hardware(repo_id='measmonysuon/DALLE-4K', hardware='t4-medium')
|
70 |
+
|
71 |
+
# Add a short delay to allow the hardware switch to complete
|
72 |
+
time.sleep(5) # Adjust this value if needed
|
73 |
+
|
74 |
# Get GPU info
|
75 |
gpu_info = get_gpu_info()
|
76 |
|