awacke1 commited on
Commit
e4736b3
ยท
verified ยท
1 Parent(s): 099c24d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -145,7 +145,7 @@ A young woman named Elara, known for her kindness and bravery, was chosen. She a
145
 
146
  # --- UI & File Handling ---
147
  FILE_ICONS = defaultdict(lambda: 'โ“', {
148
- '.md': '๐Ÿ“œ', '.txt': '๐Ÿ“„', '.py': '๐Ÿ', '.js': 'โšก', '.html': '๐ŸŒ', '.css': '๐ŸŽจ', '.json': '๐Ÿ”ฎ',
149
  '.png': '๐Ÿ–ผ๏ธ', '.jpg': '๐Ÿ–ผ๏ธ', '.jpeg': '๐Ÿ–ผ๏ธ', '.gif': '๐Ÿ–ผ๏ธ', '.bmp': '๐Ÿ–ผ๏ธ', '.tiff': '๐Ÿ–ผ๏ธ',
150
  '.pdf': '๐Ÿ“š'
151
  })
@@ -422,7 +422,7 @@ with gr.Blocks(theme=get_theme(), title="The PDF Alchemist") as demo:
422
  ai_content_output = gr.Textbox(label="Golem's Manuscript (Editable)", lines=10, interactive=True, value="# The Golem awaits your command!\n\n")
423
  gr.Markdown("<hr style='border-color: #374151; margin-top: 20px; margin-bottom: 20px;'>")
424
  gr.Markdown("### ๐Ÿ“ค Add Your Physical Treasures")
425
- uploaded_files = gr.File(label="Upload Files (TXT, MD, Code, Images, PDFs)", file_count="multiple", file_types=['text', 'image', '.pdf', '.py', '.js', '.html', '.css', '.json'])
426
 
427
  with gr.Accordion("๐Ÿ“ Arcane Blueprints (Layout & Structure)", open=True):
428
  selected_layouts = gr.CheckboxGroup(choices=list(LAYOUTS.keys()), label="Page Layouts", value=["A4 Portrait"])
@@ -478,4 +478,4 @@ with gr.Blocks(theme=get_theme(), title="The PDF Alchemist") as demo:
478
  if __name__ == "__main__":
479
  if not EMOJI_FONT_PATH:
480
  print("\n" + "="*80 + "\nCRITICAL WARNING: 'NotoColorEmoji-Regular.ttf' not found.\nThe application will fail to generate PDFs with color emojis.\n" + "="*80 + "\n")
481
- demo.launch(debug=True)
 
145
 
146
  # --- UI & File Handling ---
147
  FILE_ICONS = defaultdict(lambda: 'โ“', {
148
+ '.md': '๏ฟฝ', '.txt': '๐Ÿ“„', '.py': '๐Ÿ', '.js': 'โšก', '.html': '๐ŸŒ', '.css': '๐ŸŽจ', '.json': '๐Ÿ”ฎ',
149
  '.png': '๐Ÿ–ผ๏ธ', '.jpg': '๐Ÿ–ผ๏ธ', '.jpeg': '๐Ÿ–ผ๏ธ', '.gif': '๐Ÿ–ผ๏ธ', '.bmp': '๐Ÿ–ผ๏ธ', '.tiff': '๐Ÿ–ผ๏ธ',
150
  '.pdf': '๐Ÿ“š'
151
  })
 
422
  ai_content_output = gr.Textbox(label="Golem's Manuscript (Editable)", lines=10, interactive=True, value="# The Golem awaits your command!\n\n")
423
  gr.Markdown("<hr style='border-color: #374151; margin-top: 20px; margin-bottom: 20px;'>")
424
  gr.Markdown("### ๐Ÿ“ค Add Your Physical Treasures")
425
+ uploaded_files = gr.File(label="Upload Files (TXT, MD, Code, Images, PDFs)", file_count="multiple", file_types=['text', '.md', 'image', '.pdf', '.py', '.js', '.html', '.css', '.json'])
426
 
427
  with gr.Accordion("๐Ÿ“ Arcane Blueprints (Layout & Structure)", open=True):
428
  selected_layouts = gr.CheckboxGroup(choices=list(LAYOUTS.keys()), label="Page Layouts", value=["A4 Portrait"])
 
478
  if __name__ == "__main__":
479
  if not EMOJI_FONT_PATH:
480
  print("\n" + "="*80 + "\nCRITICAL WARNING: 'NotoColorEmoji-Regular.ttf' not found.\nThe application will fail to generate PDFs with color emojis.\n" + "="*80 + "\n")
481
+ demo.launch(debug=True)