Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def write_on_image(final_solution):
|
|
82 |
prompt_list.pop(0)
|
83 |
prompt_list.pop(1)
|
84 |
prompt_list = prompt_list[:7]
|
85 |
-
prompt_list
|
86 |
print(f"prompt list is : {prompt_list}")
|
87 |
new_prompt = '\n'.join(prompt_list)
|
88 |
print(f"final_solution is : {new_prompt}")
|
@@ -164,7 +164,7 @@ with demo:
|
|
164 |
#with gr.Row():
|
165 |
#generated_txt = gr.Textbox(lines=7, visible = True)
|
166 |
|
167 |
-
with gr.Row():
|
168 |
output_image = gr.Image() #type="filepath", shape=(256,256))
|
169 |
#output_prompt = gr.Textbox(label="Text generated", lines=5)
|
170 |
|
|
|
82 |
prompt_list.pop(0)
|
83 |
prompt_list.pop(1)
|
84 |
prompt_list = prompt_list[:7]
|
85 |
+
prompt_list.append('Distracted from:')
|
86 |
print(f"prompt list is : {prompt_list}")
|
87 |
new_prompt = '\n'.join(prompt_list)
|
88 |
print(f"final_solution is : {new_prompt}")
|
|
|
164 |
#with gr.Row():
|
165 |
#generated_txt = gr.Textbox(lines=7, visible = True)
|
166 |
|
167 |
+
#with gr.Row():
|
168 |
output_image = gr.Image() #type="filepath", shape=(256,256))
|
169 |
#output_prompt = gr.Textbox(label="Text generated", lines=5)
|
170 |
|