Spaces:
Runtime error
Runtime error
Update app.py
#2
by
tigeryfan
- opened
app.py
CHANGED
@@ -4,7 +4,7 @@ import io
|
|
4 |
|
5 |
def create_file(text):
|
6 |
cal_text = backend.generate_text(text)
|
7 |
-
if cal_text
|
8 |
raise gr.Error("No calendar data could be generated from the input.")
|
9 |
else:
|
10 |
file_obj = io.BytesIO(cal_text.encode("utf-8"))
|
|
|
4 |
|
5 |
def create_file(text):
|
6 |
cal_text = backend.generate_text(text)
|
7 |
+
if cal_text == "":
|
8 |
raise gr.Error("No calendar data could be generated from the input.")
|
9 |
else:
|
10 |
file_obj = io.BytesIO(cal_text.encode("utf-8"))
|