Files changed (1) hide show
  1. app.py +1 -1
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 is "":
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"))