bstraehle commited on
Commit
6605617
·
verified ·
1 Parent(s): 141ce1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ LLM = "gpt-4o"
13
  def invoke(openai_api_key, topic):
14
  if not openai_api_key:
15
  raise gr.Error("OpenAI API Key is required.")
16
- if not topic == "":
17
  raise gr.Error("Topic is required.")
18
 
19
  with lock:
 
13
  def invoke(openai_api_key, topic):
14
  if not openai_api_key:
15
  raise gr.Error("OpenAI API Key is required.")
16
+ if not topic:
17
  raise gr.Error("Topic is required.")
18
 
19
  with lock: