Spaces:
Runtime error
Runtime error
Commit
·
d98a4ef
1
Parent(s):
fef47b0
adding github repo
Browse files
app.py
CHANGED
@@ -49,12 +49,13 @@ def search_text(query, top_k=1):
|
|
49 |
|
50 |
|
51 |
iface = gr.Interface(
|
52 |
-
title = "Text to Image using CLIP Model",
|
53 |
-
description = "Gradio Demo fo CLIP model. \n This demo is based on assessment for the
|
|
|
54 |
fn=search_text,
|
55 |
-
inputs=[gr.inputs.Textbox(lines=
|
56 |
-
label="Write what you are looking for...",
|
57 |
-
placeholder="
|
58 |
gr.inputs.Slider(0, 5, step=1)],
|
59 |
outputs=gr.outputs.Carousel(gr.outputs.Image(type="pil"))
|
60 |
,examples=[[("Dog in the beach"), 2],
|
|
|
49 |
|
50 |
|
51 |
iface = gr.Interface(
|
52 |
+
title = "Text to Image using CLIP Model 📸",
|
53 |
+
description = "Gradio Demo fo CLIP model. \n This demo is based on assessment for the 🤗 Huggingface course 2. \n To use it, simply write which image you are looking for. Read more at the links below.",
|
54 |
+
article = "You find more information about this demo on my ✨ github repository [marcelcastrobr](https://github.com/marcelcastrobr/huggingface_course2)",
|
55 |
fn=search_text,
|
56 |
+
inputs=[gr.inputs.Textbox(lines=4,
|
57 |
+
label="Write what you are looking for in an image...",
|
58 |
+
placeholder="Text Here..."),
|
59 |
gr.inputs.Slider(0, 5, step=1)],
|
60 |
outputs=gr.outputs.Carousel(gr.outputs.Image(type="pil"))
|
61 |
,examples=[[("Dog in the beach"), 2],
|