Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -294,6 +294,8 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
|
|
| 294 |
#inference allg:
|
| 295 |
response= requests.post(API_URL, headers=HEADERS, json={"inputs": prompt})
|
| 296 |
result = response.json()
|
|
|
|
|
|
|
| 297 |
# Konvertiere String in ein Python-Dictionary
|
| 298 |
parsed_data = json.loads(result)
|
| 299 |
print("prompt generate:..................")
|
|
|
|
| 294 |
#inference allg:
|
| 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:..................")
|