Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,20 @@ theme = gr.themes.Base(
|
|
35 |
)
|
36 |
|
37 |
with gr.Blocks(theme=theme) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
img = gr.Image(show_label=False, type='pil')
|
|
|
39 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
|
|
40 |
button = gr.Button("generate", variant="primary")
|
|
|
41 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
|
|
42 |
textbox.submit(fn=generate, inputs=textbox, outputs=img)
|
43 |
|
44 |
demo.launch()
|
|
|
35 |
)
|
36 |
|
37 |
with gr.Blocks(theme=theme) as demo:
|
38 |
+
gr.Markdown("""
|
39 |
+
<center><h1> Tony Assi Lora </h1></center>
|
40 |
+
|
41 |
+
<center> by <a href="https://www.tonyassi.com/">Tony Assi</a> </center>
|
42 |
+
""")
|
43 |
+
|
44 |
img = gr.Image(show_label=False, type='pil')
|
45 |
+
|
46 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
47 |
+
|
48 |
button = gr.Button("generate", variant="primary")
|
49 |
+
|
50 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
51 |
+
|
52 |
textbox.submit(fn=generate, inputs=textbox, outputs=img)
|
53 |
|
54 |
demo.launch()
|