vamcrizer commited on
Commit
311d570
1 Parent(s): 4ab4ca2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=15, color='black', ha='center', va='top', fontweight='bold'
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, 8))
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