Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -63,7 +63,7 @@ def meme_generate(img): #prompt, generated_txt): #, input_prompt_sql ): #, input
|
|
63 |
"parameters":
|
64 |
{
|
65 |
"top_p": 0.95,
|
66 |
-
"
|
67 |
"max_new_tokens": 250,
|
68 |
"num_return_sequences": 3,
|
69 |
"return_full_text": True,
|
@@ -121,9 +121,9 @@ def meme_generate(img): #prompt, generated_txt): #, input_prompt_sql ): #, input
|
|
121 |
demo = gr.Blocks()
|
122 |
|
123 |
with demo:
|
124 |
-
gr.Markdown("<h1><center>
|
125 |
gr.Markdown(
|
126 |
-
"""Testing Bloom.
|
127 |
)
|
128 |
with gr.Row():
|
129 |
#example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
|
@@ -148,7 +148,7 @@ with demo:
|
|
148 |
#generated_txt = gr.Textbox(lines=7, visible = True)
|
149 |
output_image = gr.Image() #type="filepath", shape=(256,256))
|
150 |
|
151 |
-
b1 = gr.Button("Generate
|
152 |
#b2 = gr.Button("Generate Image")
|
153 |
|
154 |
b1.click(meme_generate, inputs=in_image, outputs=output_image) #input_word #input_prompt_dalle2 #input_prompt_sql #example_prompt
|
|
|
63 |
"parameters":
|
64 |
{
|
65 |
"top_p": 0.95,
|
66 |
+
"top_K": 50,
|
67 |
"max_new_tokens": 250,
|
68 |
"num_return_sequences": 3,
|
69 |
"return_full_text": True,
|
|
|
121 |
demo = gr.Blocks()
|
122 |
|
123 |
with demo:
|
124 |
+
gr.Markdown("<h1><center>Testing</center></h1>")
|
125 |
gr.Markdown(
|
126 |
+
"""Testing Bloom. Work In Progress"""
|
127 |
)
|
128 |
with gr.Row():
|
129 |
#example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
|
|
|
148 |
#generated_txt = gr.Textbox(lines=7, visible = True)
|
149 |
output_image = gr.Image() #type="filepath", shape=(256,256))
|
150 |
|
151 |
+
b1 = gr.Button("Generate")
|
152 |
#b2 = gr.Button("Generate Image")
|
153 |
|
154 |
b1.click(meme_generate, inputs=in_image, outputs=output_image) #input_word #input_prompt_dalle2 #input_prompt_sql #example_prompt
|