File size: 845 Bytes
6f1901f
c54dd0d
 
 
6f1901f
 
 
 
ab75c65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66d3e0a
c54dd0d
 
 
 
 
ffb2c60
c54dd0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import gradio as gr
import requests
import io
from PIL import Image

def greet(name):
    return "Hello " + name + "!!"

with gr.Blocks(theme=gradio.Themes.SOFT_ORANGE) as demo:
    name_input = gr.inputs.Textbox(lines=2, placeholder="PROMPT HERE...", label="Enter your prompt!")
    greet_output = gr.outputs.Textbox(label="Greeting")

    greet_interface = gr.Interface(
        fn=greet,
        inputs=name_input,
        outputs=greet_output,
        title="Test this authoral illustration style",
        description="This App generates images through a finetuned model in a authoral illustration style.",
        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()