Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,13 +7,14 @@ def generate_image(text):
|
|
| 7 |
print(f"Using example: {text}")
|
| 8 |
return model(text)
|
| 9 |
|
| 10 |
-
examples = ["Humanoid Cat Warrior, Full View"]
|
| 11 |
|
| 12 |
interface = gr.Interface(
|
| 13 |
-
|
| 14 |
-
inputs=gr.Textbox(label="Type your imagination:"
|
| 15 |
-
outputs=gr.Image(label="
|
|
|
|
| 16 |
theme="NoCrypt/miku",
|
| 17 |
)
|
| 18 |
|
| 19 |
-
interface.launch()
|
|
|
|
| 7 |
print(f"Using example: {text}")
|
| 8 |
return model(text)
|
| 9 |
|
| 10 |
+
examples = [["Humanoid Cat Warrior, Full View"]]
|
| 11 |
|
| 12 |
interface = gr.Interface(
|
| 13 |
+
fn=generate_image,
|
| 14 |
+
inputs=gr.Textbox(label="Type your imagination:"),
|
| 15 |
+
outputs=gr.Image(label="Generated Image"),
|
| 16 |
+
examples=examples,
|
| 17 |
theme="NoCrypt/miku",
|
| 18 |
)
|
| 19 |
|
| 20 |
+
interface.launch()
|