Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -466,7 +466,7 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
|
|
466 |
data = {"inputs": prompt}
|
467 |
response = requests.post(API_URL, headers=HEADERS, json=data)
|
468 |
print("response. HF API.....................")
|
469 |
-
print(response)
|
470 |
result = response.content #json()
|
471 |
print("result. HF API.....................")
|
472 |
print(result)
|
|
|
466 |
data = {"inputs": prompt}
|
467 |
response = requests.post(API_URL, headers=HEADERS, json=data)
|
468 |
print("response. HF API.....................")
|
469 |
+
print(response.getattr())
|
470 |
result = response.content #json()
|
471 |
print("result. HF API.....................")
|
472 |
print(result)
|