Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,19 @@ import gradio as gr
|
|
3 |
def generate(prompt):
|
4 |
return None
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
gr.Markdown("# Tony Assi")
|
8 |
img = gr.Image()
|
9 |
textbox = gr.Textbox()
|
10 |
button = gr.Button("Run")
|
11 |
-
button.click(fn=generate, inputs=
|
12 |
|
13 |
demo.launch()
|
|
|
3 |
def generate(prompt):
|
4 |
return None
|
5 |
|
6 |
+
theme = gr.themes.Base(
|
7 |
+
primary_hue="gray",
|
8 |
+
secondary_hue="gray",
|
9 |
+
font=['Helvetica', 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
10 |
+
).set(
|
11 |
+
button_large_text_weight='400'
|
12 |
+
)
|
13 |
+
|
14 |
+
with gr.Blocks(theme=theme) as demo:
|
15 |
gr.Markdown("# Tony Assi")
|
16 |
img = gr.Image()
|
17 |
textbox = gr.Textbox()
|
18 |
button = gr.Button("Run")
|
19 |
+
button.click(fn=generate, inputs=textbox, outputs=img)
|
20 |
|
21 |
demo.launch()
|