Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,7 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
|
|
| 295 |
response= requests.post(API_URL, headers=HEADERS, json={"inputs": prompt})
|
| 296 |
result = response.json()
|
| 297 |
print("result:------------------")
|
| 298 |
-
print(result)
|
| 299 |
# Konvertiere String in ein Python-Dictionary
|
| 300 |
parsed_data = json.loads(result)
|
| 301 |
print("prompt generate:..................")
|
|
|
|
| 295 |
response= requests.post(API_URL, headers=HEADERS, json={"inputs": prompt})
|
| 296 |
result = response.json()
|
| 297 |
print("result:------------------")
|
| 298 |
+
print(result[0]['generated_text'])
|
| 299 |
# Konvertiere String in ein Python-Dictionary
|
| 300 |
parsed_data = json.loads(result)
|
| 301 |
print("prompt generate:..................")
|