Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import os
|
|
7 |
|
8 |
# functions
|
9 |
def generate(description, model, max_tokens):
|
10 |
-
if not description
|
11 |
-
return
|
12 |
|
13 |
headers = {
|
14 |
'Content-Type': 'application/json',
|
|
|
7 |
|
8 |
# functions
|
9 |
def generate(description, model, max_tokens):
|
10 |
+
if not description:
|
11 |
+
return None, None
|
12 |
|
13 |
headers = {
|
14 |
'Content-Type': 'application/json',
|