Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def generate_response(prompt, system_prompt, temperature, top_p, seed):
|
|
| 41 |
|
| 42 |
response_data = response.json()
|
| 43 |
|
| 44 |
-
text_response = response_data.get("
|
| 45 |
|
| 46 |
# Convert the full response to a pretty-printed JSON
|
| 47 |
json_response = json.dumps(response_data, indent=2)
|
|
|
|
| 41 |
|
| 42 |
response_data = response.json()
|
| 43 |
|
| 44 |
+
text_response = response_data.get("generatedText", "No content returned")
|
| 45 |
|
| 46 |
# Convert the full response to a pretty-printed JSON
|
| 47 |
json_response = json.dumps(response_data, indent=2)
|