Spaces:
Sleeping
Sleeping
neznib
commited on
Commit
·
833e1ee
1
Parent(s):
c60670c
test run
Browse files- app.py +2 -1
- playgroudn.ipynb +0 -47
- playground_api.ipynb +2 -2
app.py
CHANGED
|
@@ -15,7 +15,8 @@ class BasicAgent:
|
|
| 15 |
print("BasicAgent initialized.")
|
| 16 |
def __call__(self, question: str) -> str:
|
| 17 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 18 |
-
fixed_answer = "This is a default answer."
|
|
|
|
| 19 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 20 |
return fixed_answer
|
| 21 |
|
|
|
|
| 15 |
print("BasicAgent initialized.")
|
| 16 |
def __call__(self, question: str) -> str:
|
| 17 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 18 |
+
# fixed_answer = "This is a default answer."
|
| 19 |
+
fixed_answer = "Tree studio album: Corazón Libre (2005), Cantora 1 (2009) and Cantora 2 (2009)"
|
| 20 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 21 |
return fixed_answer
|
| 22 |
|
playgroudn.ipynb
DELETED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"cells": [
|
| 3 |
-
{
|
| 4 |
-
"cell_type": "code",
|
| 5 |
-
"id": "initial_id",
|
| 6 |
-
"metadata": {
|
| 7 |
-
"collapsed": true,
|
| 8 |
-
"ExecuteTime": {
|
| 9 |
-
"end_time": "2025-04-26T14:40:04.046738Z",
|
| 10 |
-
"start_time": "2025-04-26T14:40:04.038160Z"
|
| 11 |
-
}
|
| 12 |
-
},
|
| 13 |
-
"source": "# hallo",
|
| 14 |
-
"outputs": [],
|
| 15 |
-
"execution_count": 1
|
| 16 |
-
},
|
| 17 |
-
{
|
| 18 |
-
"metadata": {},
|
| 19 |
-
"cell_type": "code",
|
| 20 |
-
"outputs": [],
|
| 21 |
-
"execution_count": null,
|
| 22 |
-
"source": "",
|
| 23 |
-
"id": "357fd994e9dc6e18"
|
| 24 |
-
}
|
| 25 |
-
],
|
| 26 |
-
"metadata": {
|
| 27 |
-
"kernelspec": {
|
| 28 |
-
"display_name": "Python 3",
|
| 29 |
-
"language": "python",
|
| 30 |
-
"name": "python3"
|
| 31 |
-
},
|
| 32 |
-
"language_info": {
|
| 33 |
-
"codemirror_mode": {
|
| 34 |
-
"name": "ipython",
|
| 35 |
-
"version": 2
|
| 36 |
-
},
|
| 37 |
-
"file_extension": ".py",
|
| 38 |
-
"mimetype": "text/x-python",
|
| 39 |
-
"name": "python",
|
| 40 |
-
"nbconvert_exporter": "python",
|
| 41 |
-
"pygments_lexer": "ipython2",
|
| 42 |
-
"version": "2.7.6"
|
| 43 |
-
}
|
| 44 |
-
},
|
| 45 |
-
"nbformat": 4,
|
| 46 |
-
"nbformat_minor": 5
|
| 47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
playground_api.ipynb
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
"metadata": {
|
| 7 |
"collapsed": true,
|
| 8 |
"ExecuteTime": {
|
| 9 |
-
"end_time": "2025-04-26T15:
|
| 10 |
-
"start_time": "2025-04-26T15:
|
| 11 |
}
|
| 12 |
},
|
| 13 |
"source": "import requests",
|
|
|
|
| 6 |
"metadata": {
|
| 7 |
"collapsed": true,
|
| 8 |
"ExecuteTime": {
|
| 9 |
+
"end_time": "2025-04-26T15:17:22.192034Z",
|
| 10 |
+
"start_time": "2025-04-26T15:17:22.136508Z"
|
| 11 |
}
|
| 12 |
},
|
| 13 |
"source": "import requests",
|