Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,26 +6,10 @@ from PIL import Image
|
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!!"
|
8 |
|
9 |
-
with gr.
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
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,
|
27 |
-
inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
|
28 |
-
outputs="text",
|
29 |
-
)
|
30 |
-
|
31 |
-
demo.launch()
|
|
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!!"
|
8 |
|
9 |
+
with gr.blocks(theme=gradio.Themes.SIMPLE_ORANGE) as demo:
|
10 |
+
text_input = gr.inputs.Textbox(lines=2, placeholder="Name Here...")
|
11 |
+
output_text = gr.outputs.Textbox()
|
12 |
+
gr.Interface(fn=greet, inputs=text_input, outputs=output_text).\
|
13 |
+
label("Greeting App").\
|
14 |
+
caption("Type your name to receive a personalized greeting.").\
|
15 |
+
launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|