Updated content type
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ def call_private_api(user_input):
|
|
| 14 |
# Pass the token in the Authorization header
|
| 15 |
headers = {
|
| 16 |
"Authorization": f"Bearer {HF_TOKEN}",
|
| 17 |
-
"Content-Type": "text/plain"
|
| 18 |
-
|
| 19 |
}
|
| 20 |
|
| 21 |
print(f"User input is: {user_input}")
|
|
|
|
| 14 |
# Pass the token in the Authorization header
|
| 15 |
headers = {
|
| 16 |
"Authorization": f"Bearer {HF_TOKEN}",
|
| 17 |
+
#"Content-Type": "text/plain"
|
| 18 |
+
"Content-Type": "application/json"
|
| 19 |
}
|
| 20 |
|
| 21 |
print(f"User input is: {user_input}")
|