Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def create_meme(prompt):
|
|
73 |
x=combined_img.shape[1] / 2,
|
74 |
y=white_space_height / 2,
|
75 |
s=caption,
|
76 |
-
fontsize=
|
77 |
)
|
78 |
|
79 |
plt.show()
|
@@ -89,7 +89,7 @@ with gr.Blocks() as demo:
|
|
89 |
result = gr.Plot(label="Generated Meme")
|
90 |
|
91 |
def gradio_infer(prompt):
|
92 |
-
plt.figure(figsize=(10,
|
93 |
create_meme(prompt)
|
94 |
plt.savefig('/tmp/meme.png') # Lưu hình tạm thời
|
95 |
return plt
|
|
|
73 |
x=combined_img.shape[1] / 2,
|
74 |
y=white_space_height / 2,
|
75 |
s=caption,
|
76 |
+
fontsize=13, color='black', ha='center', va='top', fontweight='bold'
|
77 |
)
|
78 |
|
79 |
plt.show()
|
|
|
89 |
result = gr.Plot(label="Generated Meme")
|
90 |
|
91 |
def gradio_infer(prompt):
|
92 |
+
plt.figure(figsize=(10, 10))
|
93 |
create_meme(prompt)
|
94 |
plt.savefig('/tmp/meme.png') # Lưu hình tạm thời
|
95 |
return plt
|