Spaces:
Runtime error
Runtime error
import gradio as gr | |
import requests | |
import io | |
from PIL import Image | |
def greet(name): | |
return "Hello " + name + "!!" | |
with gr.Blocks(theme=gr.themes.Glass()) as demo: | |
name_input = gr.inputs.Textbox(lines=2, placeholder="Name Here...", label="Enter Your Name") | |
greet_output = gr.outputs.Textbox(label="Greeting") | |
greet_interface = gr.Interface( | |
fn=greet, | |
inputs=name_input, | |
outputs=greet_output, | |
title="Greeting App", | |
description="This app greets you by name.", | |
theme=gradio.Themes.LIGHT, | |
layout="vertical", | |
analytics_enabled=False | |
) | |
demo = gr.Interface( | |
fn=greet, | |
inputs=gr.Textbox(lines=2, placeholder="Name Here..."), | |
outputs="text", | |
) | |
demo.launch() |