LYL1015 commited on
Commit
fee197a
·
verified ·
1 Parent(s): 602f68e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -879,7 +879,7 @@ def create_interface():
879
  if example['config_lua']:
880
  # Show preview of config
881
  config_preview = example['config_lua'][:200] + "..." if len(example['config_lua']) > 200 else example['config_lua']
882
- gr.Code(config_preview, language="lua", label=f"Config Preview", interactive=False)
883
 
884
  # Download button
885
  download_btn = gr.Button(f"📥 Download Preset {example['id']}", size="sm", variant="secondary")
 
879
  if example['config_lua']:
880
  # Show preview of config
881
  config_preview = example['config_lua'][:200] + "..." if len(example['config_lua']) > 200 else example['config_lua']
882
+ gr.Textbox(config_preview, label=f"Config Preview", lines=8, max_lines=8, interactive=False)
883
 
884
  # Download button
885
  download_btn = gr.Button(f"📥 Download Preset {example['id']}", size="sm", variant="secondary")