marcelcastrobr commited on
Commit
d98a4ef
1 Parent(s): fef47b0

adding github repo

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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 :hugging: Huggingface course 2. \n To use it, simply write which image you are looking for. Read more at the links below.",
 
54
  fn=search_text,
55
- inputs=[gr.inputs.Textbox(lines=2,
56
- label="Write what you are looking for...",
57
- placeholder="Name Here..."),
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],