Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,20 @@
|
|
1 |
-
import gradio
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
|
3 |
+
model_interfaces = gradio.Interface.load("models/andite/anything-v4.0")
|
4 |
+
|
5 |
+
sandbox = gradio.Interface(
|
6 |
+
fn=process_prompt,
|
7 |
+
inputs=[gradio.Textbox(label="Enter Prompt:")],
|
8 |
+
outputs=[gradio.Image(label="Produced Image")],
|
9 |
+
title="Text to Image",
|
10 |
+
examples=[["Female Adventurer portrait, rogue, tavern background"],
|
11 |
+
["female Adventurer portrait, barbarian, tavern background"],
|
12 |
+
["Male Adventurer portrait, barbarian, tavern background"],
|
13 |
+
["Male superhero portrait, modern city, building background"],
|
14 |
+
["Female Adventurer portrait, Druid, tavern background"],
|
15 |
+
["close up portrait Benedict Cumberbatch wizard of black magic, robe with hood, Hogwart University, castle tower background, oil painting on canvas"],
|
16 |
+
["Adventurer portrait, cleric, rogue looking stranger, tavern background"]]
|
17 |
+
)
|
18 |
+
|
19 |
+
sandbox.queue(concurrency_count=10).launch(debug=True)
|
20 |
+
#gr.Interface.load().launch()
|