MonitorKarma commited on
Commit
365a82e
·
verified ·
1 Parent(s): 30918e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -59,14 +59,8 @@ def generate_meme(topic):
59
  # 2. Выбор случайного шаблона
60
  template_url = random.choice(MEME_TEMPLATES)
61
 
62
- # 3. Формируем результат
63
- result = {
64
- "upper_text": upper_text,
65
- "lower_text": lower_text,
66
- "template_url": template_url
67
- }
68
-
69
- return result
70
 
71
  with gr.Blocks() as demo:
72
  gr.Markdown("# 🎯 Генератор школьных мемов")
 
59
  # 2. Выбор случайного шаблона
60
  template_url = random.choice(MEME_TEMPLATES)
61
 
62
+
63
+ return upper_text, lower_text, template_url
 
 
 
 
 
 
64
 
65
  with gr.Blocks() as demo:
66
  gr.Markdown("# 🎯 Генератор школьных мемов")