ArrcttacsrjksX commited on
Commit
4375e85
·
verified ·
1 Parent(s): 45f2c03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -113,11 +113,11 @@ with gr.Blocks() as demo:
113
  file_input = gr.File(label="Upload a Text File", type="binary")
114
 
115
  with gr.Row():
116
- font_size = gr.Slider(0, 100, value=30, label="Font Size")
117
  font_name = gr.Dropdown(choices=available_fonts, value=default_font, label="Font")
118
  align = gr.Radio(["Left", "Center", "Right"], label="Text Alignment", value="Center")
119
- width = gr.Slider(0, 2000, value=800, label="Image Width")
120
- height = gr.Slider(0, 2000, value=600, label="Image Height")
121
 
122
  with gr.Row():
123
  bg_color = gr.ColorPicker(label="Background Color", value="#FFFFFF")
@@ -127,7 +127,7 @@ with gr.Blocks() as demo:
127
  mode = gr.Radio(["Plain Text", "LaTeX Math"], label="Rendering Mode", value="Plain Text")
128
  image_format = gr.Radio(["PNG", "JPEG"], label="Image Format", value="PNG")
129
 
130
- line_spacing = gr.Slider(1.0, 10.0, value=1.2, step=0.1, label="Line Spacing")
131
  output_image = gr.Image(label="Generated Image")
132
 
133
  convert_button = gr.Button("Convert Text to Image")
 
113
  file_input = gr.File(label="Upload a Text File", type="binary")
114
 
115
  with gr.Row():
116
+ font_size = gr.Slider(0, 300, value=30, label="Font Size")
117
  font_name = gr.Dropdown(choices=available_fonts, value=default_font, label="Font")
118
  align = gr.Radio(["Left", "Center", "Right"], label="Text Alignment", value="Center")
119
+ width = gr.Slider(0, 9000, value=800, label="Image Width")
120
+ height = gr.Slider(0, 9000, value=600, label="Image Height")
121
 
122
  with gr.Row():
123
  bg_color = gr.ColorPicker(label="Background Color", value="#FFFFFF")
 
127
  mode = gr.Radio(["Plain Text", "LaTeX Math"], label="Rendering Mode", value="Plain Text")
128
  image_format = gr.Radio(["PNG", "JPEG"], label="Image Format", value="PNG")
129
 
130
+ line_spacing = gr.Slider(1.0, 300.0, value=1.2, step=0.1, label="Line Spacing")
131
  output_image = gr.Image(label="Generated Image")
132
 
133
  convert_button = gr.Button("Convert Text to Image")