Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,21 @@ from PIL import Image
|
|
| 6 |
def greet(name):
|
| 7 |
return "Hello " + name + "!!"
|
| 8 |
|
| 9 |
-
with gr.Blocks(theme=
|
| 10 |
-
...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
demo = gr.Interface(
|
| 13 |
fn=greet,
|
|
|
|
| 6 |
def greet(name):
|
| 7 |
return "Hello " + name + "!!"
|
| 8 |
|
| 9 |
+
with gr.Blocks(theme=gradio.Themes.SOFT_ORANGE) as demo:
|
| 10 |
+
name_input = gr.inputs.Textbox(lines=2, placeholder="PROMPT HERE...", label="Enter your prompt!")
|
| 11 |
+
greet_output = gr.outputs.Textbox(label="Greeting")
|
| 12 |
+
|
| 13 |
+
greet_interface = gr.Interface(
|
| 14 |
+
fn=greet,
|
| 15 |
+
inputs=name_input,
|
| 16 |
+
outputs=greet_output,
|
| 17 |
+
title="Test this authoral illustration style",
|
| 18 |
+
description="This App generates images through a finetuned model in a authoral illustration style.",
|
| 19 |
+
theme=gradio.Themes.LIGHT,
|
| 20 |
+
layout="vertical",
|
| 21 |
+
analytics_enabled=False
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
|
| 25 |
demo = gr.Interface(
|
| 26 |
fn=greet,
|