Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,16 +17,8 @@ from agents.prompts import load_prompts
|
|
17 |
|
18 |
from ContentGradio import ContentAgentUI
|
19 |
|
20 |
-
# Try a direct test of your endpoint
|
21 |
-
test_prompt = "Hello, how are you?"
|
22 |
-
response = requests.post(
|
23 |
-
endpoint_uri,
|
24 |
-
json={"inputs": test_prompt},
|
25 |
-
headers={"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
|
26 |
-
)
|
27 |
-
print(response.json())
|
28 |
-
|
29 |
|
|
|
30 |
|
31 |
|
32 |
def initialize_agent(endpoint_uri: str):
|
|
|
17 |
|
18 |
from ContentGradio import ContentAgentUI
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
|
22 |
|
23 |
|
24 |
def initialize_agent(endpoint_uri: str):
|