Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def predict_chatgpt(inputs, top_p_chatgpt, temperature_chatgpt, openai_api_key,
|
|
| 63 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
| 64 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
| 65 |
token_counter = 0
|
| 66 |
-
partial_words = ""
|
| 67 |
|
| 68 |
counter=0
|
| 69 |
for chunk in response.iter_lines():
|
|
|
|
| 63 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
| 64 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
| 65 |
token_counter = 0
|
| 66 |
+
partial_words = ""
|
| 67 |
|
| 68 |
counter=0
|
| 69 |
for chunk in response.iter_lines():
|