Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ HEADERS = {
|
|
41 |
"Content-Type": "application/json",
|
42 |
"accept": "application/json"
|
43 |
}
|
44 |
-
print(HEADERS)
|
45 |
|
46 |
PRESENCE_PENALTY=0
|
47 |
FREQUENCY_PENALTY=1.1
|
@@ -157,7 +156,6 @@ with gr.Blocks() as demo:
|
|
157 |
keep_streaming = True
|
158 |
s = requests.Session()
|
159 |
with s.post(API_URL, headers=HEADERS, json=data, stream=True) as r:
|
160 |
-
print(r)
|
161 |
for line in r.iter_lines():
|
162 |
if line and keep_streaming:
|
163 |
assert r.status_code == 200
|
|
|
41 |
"Content-Type": "application/json",
|
42 |
"accept": "application/json"
|
43 |
}
|
|
|
44 |
|
45 |
PRESENCE_PENALTY=0
|
46 |
FREQUENCY_PENALTY=1.1
|
|
|
156 |
keep_streaming = True
|
157 |
s = requests.Session()
|
158 |
with s.post(API_URL, headers=HEADERS, json=data, stream=True) as r:
|
|
|
159 |
for line in r.iter_lines():
|
160 |
if line and keep_streaming:
|
161 |
assert r.status_code == 200
|