Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,6 @@ def create_request(prompt, aspect_ratio="1:1", seed=-1):
|
|
88 |
headers = {
|
89 |
"Authorization": f"Bearer {API_TOKEN}",
|
90 |
"X-accept-language": "en",
|
91 |
-
"X-source": "api",
|
92 |
"Content-Type": "application/json",
|
93 |
}
|
94 |
|
@@ -663,5 +662,5 @@ if __name__ == "__main__":
|
|
663 |
logger.info("Starting HiDream-I1-Dev Image Generator application")
|
664 |
demo = create_ui()
|
665 |
logger.info("Launching Gradio interface with queue")
|
666 |
-
demo.queue(max_size=
|
667 |
logger.info("Application shutdown")
|
|
|
88 |
headers = {
|
89 |
"Authorization": f"Bearer {API_TOKEN}",
|
90 |
"X-accept-language": "en",
|
|
|
91 |
"Content-Type": "application/json",
|
92 |
}
|
93 |
|
|
|
662 |
logger.info("Starting HiDream-I1-Dev Image Generator application")
|
663 |
demo = create_ui()
|
664 |
logger.info("Launching Gradio interface with queue")
|
665 |
+
demo.queue(max_size=5, default_concurrency_limit=2).launch()
|
666 |
logger.info("Application shutdown")
|