Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,14 @@ import gradio
|
|
2 |
|
3 |
model_interfaces = gradio.Interface.load("models/andite/anything-v4.0")
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
sandbox = gradio.Interface(
|
6 |
-
|
7 |
inputs=[gradio.Textbox(label="Enter Prompt:")],
|
8 |
outputs=[gradio.Image(label="Produced Image")],
|
9 |
title="Text to Image",
|
|
|
2 |
|
3 |
model_interfaces = gradio.Interface.load("models/andite/anything-v4.0")
|
4 |
|
5 |
+
def process_prompt(prompt):
|
6 |
+
prompt=prompt.lower()
|
7 |
+
print(prompt)
|
8 |
+
image = model_interfaces(prompt)
|
9 |
+
return image
|
10 |
+
|
11 |
sandbox = gradio.Interface(
|
12 |
+
fn=process_prompt,
|
13 |
inputs=[gradio.Textbox(label="Enter Prompt:")],
|
14 |
outputs=[gradio.Image(label="Produced Image")],
|
15 |
title="Text to Image",
|