Spaces:
Runtime error
Runtime error
File size: 506 Bytes
c4bca75 36771cf c4bca75 de1a3cf 0aecf3d de1a3cf 21da889 de1a3cf c4bca75 a899bea de1a3cf c4bca75 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
def generate(prompt):
return None
theme = gr.themes.Base(
primary_hue="gray",
secondary_hue="gray",
neutral_hue="gray",
font=['Helvetica', 'ui-sans-serif', 'system-ui', 'sans-serif'],
).set(
button_large_text_weight='400',
input_background_fill='*primary_50',
)
with gr.Blocks(theme=theme) as demo:
img = gr.Image()
textbox = gr.Textbox()
button = gr.Button("generate")
button.click(fn=generate, inputs=textbox, outputs=img)
demo.launch() |