Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
-
import gradio as gr
|
2 |
import requests
|
3 |
import io
|
4 |
from PIL import Image
|
|
|
5 |
|
6 |
title = "Fine Tuned SD Model - Authoral stylization"
|
7 |
description = "Generate images trained in an authoral illustration model."
|
8 |
article = "<p style='text-align: center'><a href='https://news.machinelearning.sg/posts/beautiful_profile_pics_remove_background_image_with_deeplabv3/'>Blog</a> | <a href='https://github.com/eugenesiow/practical-ml'>Github Repo</a></p>"
|
9 |
|
10 |
-
def
|
11 |
-
|
12 |
-
return model(prompt)[0]
|
13 |
-
|
14 |
-
inputs = gr.inputs.Textbox(label="Prompt", placeholder="Your prompt here...")
|
15 |
-
output = gr.outputs.Image(label="Generated Image")
|
16 |
|
17 |
-
gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import requests
|
2 |
import io
|
3 |
from PIL import Image
|
4 |
+
import gradio as gr
|
5 |
|
6 |
title = "Fine Tuned SD Model - Authoral stylization"
|
7 |
description = "Generate images trained in an authoral illustration model."
|
8 |
article = "<p style='text-align: center'><a href='https://news.machinelearning.sg/posts/beautiful_profile_pics_remove_background_image_with_deeplabv3/'>Blog</a> | <a href='https://github.com/eugenesiow/practical-ml'>Github Repo</a></p>"
|
9 |
|
10 |
+
def greet(name):
|
11 |
+
return "Hello " + name + "!!"
|
|
|
|
|
|
|
|
|
12 |
|
13 |
+
iface = gr.Interface(fn=greet,
|
14 |
+
inputs=gr.inputs.Textbox(label="Prompt", placeholder="Your prompt here..."),
|
15 |
+
outputs=gr.outputs.Image(label="Generated Image")
|
16 |
+
|
17 |
+
)
|
18 |
+
iface.launch()
|