giulio98 commited on
Commit
0551c31
·
1 Parent(s): 08824d8

fix global variable

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -187,6 +187,7 @@ def create_rag_index(text_no_prefix):
187
 
188
  @spaces.GPU
189
  def auto_convert(file_objs, url, do_ocr, do_table_structure):
 
190
  if file_objs is None and (url is None or url.strip() == ""):
191
  return (
192
  gr.update(value=""),
 
187
 
188
  @spaces.GPU
189
  def auto_convert(file_objs, url, do_ocr, do_table_structure):
190
+ global global_rag_index
191
  if file_objs is None and (url is None or url.strip() == ""):
192
  return (
193
  gr.update(value=""),