Update app.py
Browse files
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:
|