Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
|
@@ -162,6 +162,9 @@ def process_file(file):
|
|
| 162 |
paper_text = convert_file(filepath)
|
| 163 |
if not len(paper_text) > MIN_LENGTH:
|
| 164 |
raise ValueError()
|
|
|
|
|
|
|
|
|
|
| 165 |
except Exception as e:
|
| 166 |
print(traceback.format_exc())
|
| 167 |
print(f"Error converting {filepath}: {e}")
|
|
|
|
| 162 |
paper_text = convert_file(filepath)
|
| 163 |
if not len(paper_text) > MIN_LENGTH:
|
| 164 |
raise ValueError()
|
| 165 |
+
except spaces.zero.gradio.HTMLError as e:
|
| 166 |
+
print(e)
|
| 167 |
+
return "GPU quota exceeded"
|
| 168 |
except Exception as e:
|
| 169 |
print(traceback.format_exc())
|
| 170 |
print(f"Error converting {filepath}: {e}")
|