image: Enhance.
Browse files
app.py
CHANGED
|
@@ -31,7 +31,9 @@ def playground(model, size, prompt, mode="run"):
|
|
| 31 |
|
| 32 |
except OpenAIError:
|
| 33 |
raise gr.Error(
|
| 34 |
-
"The server is currently busy. Please try again later
|
|
|
|
|
|
|
| 35 |
)
|
| 36 |
|
| 37 |
return Image.open(
|
|
|
|
| 31 |
|
| 32 |
except OpenAIError:
|
| 33 |
raise gr.Error(
|
| 34 |
+
"The server is currently busy. Please try again later, "
|
| 35 |
+
"or consider switching to another model, "
|
| 36 |
+
"as each model has a different inference speed."
|
| 37 |
)
|
| 38 |
|
| 39 |
return Image.open(
|
config.py
CHANGED
|
@@ -20,7 +20,15 @@ EXAMPLES=[
|
|
| 20 |
["turbo", "1024x1024",
|
| 21 |
"A cute cat astronaut floating in space, holding a little flag"],
|
| 22 |
["kontext", "1024x1024",
|
| 23 |
-
"An ancient library filled with floating books and magical lights"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
]
|
| 25 |
|
| 26 |
DESCRIPTION = """
|
|
|
|
| 20 |
["turbo", "1024x1024",
|
| 21 |
"A cute cat astronaut floating in space, holding a little flag"],
|
| 22 |
["kontext", "1024x1024",
|
| 23 |
+
"An ancient library filled with floating books and magical lights"],
|
| 24 |
+
["flux", "1024x1024",
|
| 25 |
+
"Tropical beach with crystal-clear water and palm trees swaying"],
|
| 26 |
+
["flux", "1024x1024",
|
| 27 |
+
"Cyberpunk street musician with neon tattoos"],
|
| 28 |
+
["flux", "1024x1024",
|
| 29 |
+
"Abstract watercolor splash resembling a city skyline"],
|
| 30 |
+
["flux", "1024x1024",
|
| 31 |
+
"Anatomical diagram of the human heart in textbook style"]
|
| 32 |
]
|
| 33 |
|
| 34 |
DESCRIPTION = """
|