Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def stream_response(prompt_text, api_key):
|
|
| 141 |
json=payload,
|
| 142 |
headers=headers,
|
| 143 |
stream=True
|
| 144 |
-
)
|
| 145 |
response.raise_for_status()
|
| 146 |
|
| 147 |
# The endpoint presumably returns lines of JSON. Adjust parsing if needed:
|
|
|
|
| 141 |
json=payload,
|
| 142 |
headers=headers,
|
| 143 |
stream=True
|
| 144 |
+
)
|
| 145 |
response.raise_for_status()
|
| 146 |
|
| 147 |
# The endpoint presumably returns lines of JSON. Adjust parsing if needed:
|