Spaces:
Runtime error
Runtime error
updated desc
Browse files
app.py
CHANGED
@@ -79,9 +79,9 @@ def meme_generate(img, prompt, temp, top_p): #prompt, generated_txt): #, input_p
|
|
79 |
demo = gr.Blocks()
|
80 |
|
81 |
with demo:
|
82 |
-
gr.Markdown("<h1><center>Distracted Boyfriend Meme😄-
|
83 |
gr.Markdown(
|
84 |
-
"""Bloom is a model made by research teams from [HuggingFace](https://huggingface.co/bigscience/bloom) and world over (more than 1000 researchers coming together and working as [BigScienceW Bloom](https://twitter.com/BigscienceW))
|
85 |
)
|
86 |
# <span style="color:green;font-weight:700;font-size:20px">markdown color font styles</span>
|
87 |
with gr.Row():
|
@@ -97,7 +97,7 @@ with demo:
|
|
97 |
in_slider_top_p = gr.Slider(minimum=0.50, maximum=0.99, value=0.90, step=0.01, label='Top_p')
|
98 |
|
99 |
|
100 |
-
b1 = gr.Button("Generate")
|
101 |
|
102 |
b1.click(meme_generate, inputs=[in_image, input_prompt, in_slider_temp, in_slider_top_p] , outputs=[output_image,input_prompt])
|
103 |
|
|
|
79 |
demo = gr.Blocks()
|
80 |
|
81 |
with demo:
|
82 |
+
gr.Markdown("<h1><center>Distracted Boyfriend Meme😄- Using Bloom 🌸 </center></h1>")
|
83 |
gr.Markdown(
|
84 |
+
"""Bloom is a model made by research teams from [HuggingFace](https://huggingface.co/bigscience/bloom) and world over (more than 1000 researchers coming together and working as [BigScienceW Bloom](https://twitter.com/BigscienceW)).Large language models can produce coherent sentences but can they produce **Humor** too? Yes, they can, given the correct prompt (And Yes, Prompt Engineering 🤖 should definitely become a thing by now).\n\n**How to Use this App**: Just Fire Away the Generate Meme button below, as many times as you want!! If you see repeated or similar memes getting generated in consecutive runs, toggle temperature and top_p values.\n\n**How this App works**: Figuring out the right set of Prompting + Writing on an Image + Bit of engineering. Currently, Bloom's Public API has size-limits on Token-Generation, so you can get only few tokens generated at a time.\n\n<pre> Bloom generating very few tokens When Few words are Enough</pre>\n\n<pre><span style='font-size:30px'> 🤝Memes</span></pre>\n\n\nIt is a fun little App which you can play with for a while.\n\nThis Space is created by [Yuvraj Sharma](https://twitter.com/yvrjsharma)"""
|
85 |
)
|
86 |
# <span style="color:green;font-weight:700;font-size:20px">markdown color font styles</span>
|
87 |
with gr.Row():
|
|
|
97 |
in_slider_top_p = gr.Slider(minimum=0.50, maximum=0.99, value=0.90, step=0.01, label='Top_p')
|
98 |
|
99 |
|
100 |
+
b1 = gr.Button("Generate Memes")
|
101 |
|
102 |
b1.click(meme_generate, inputs=[in_image, input_prompt, in_slider_temp, in_slider_top_p] , outputs=[output_image,input_prompt])
|
103 |
|