Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
|
5 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
6 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
7 |
|
8 |
def gen(prompt, model='gpt'):
|
9 |
if prompt == "" or prompt == None:
|
|
|
4 |
|
5 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
6 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
7 |
+
timeout = 100
|
8 |
|
9 |
def gen(prompt, model='gpt'):
|
10 |
if prompt == "" or prompt == None:
|