Spaces:
Runtime error
Runtime error
fix global variable
Browse files
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=""),
|