Rooni commited on
Commit
4e195d5
·
1 Parent(s): b93fb20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ import os
7
 
8
  # functions
9
  def generate(description, model, max_tokens):
10
- if not description or not model:
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',