broadfield-dev commited on
Commit
a22bbc3
·
verified ·
1 Parent(s): 0fd8266

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -121,7 +121,7 @@ def build_full_html(markdown_text, styles, include_fontawesome):
121
 
122
  return full_html
123
 
124
- # --- API ENDPOINT for Conversion (CHANGED) ---
125
  @app.route('/convert', methods=['POST'])
126
  def convert_endpoint():
127
  data = request.json
@@ -133,12 +133,10 @@ def convert_endpoint():
133
  include_fontawesome=data.get('include_fontawesome', False)
134
  )
135
 
136
- # *** THIS IS THE ONLY CHANGE IN THIS FILE ***
137
- # Add the 'xvfb' option to tell imgkit to use the virtual display.
138
  options = {
139
  "quiet": "",
140
  'encoding': "UTF-8",
141
- 'xvfb': ''
142
  }
143
 
144
  temp_html_path = os.path.join(TEMP_DIR, f"{uuid.uuid4()}.html")
 
121
 
122
  return full_html
123
 
124
+ # --- API ENDPOINT for Conversion (REVERTED) ---
125
  @app.route('/convert', methods=['POST'])
126
  def convert_endpoint():
127
  data = request.json
 
133
  include_fontawesome=data.get('include_fontawesome', False)
134
  )
135
 
136
+ # The 'xvfb' option has been removed as requested.
 
137
  options = {
138
  "quiet": "",
139
  'encoding': "UTF-8",
 
140
  }
141
 
142
  temp_html_path = os.path.join(TEMP_DIR, f"{uuid.uuid4()}.html")