Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,6 @@ class ResearchSystem:
|
|
30 |
"tool-call": "assistant",
|
31 |
"tool-response": "user"
|
32 |
},
|
33 |
-
use_auth_token=False,
|
34 |
trust_remote_code=True
|
35 |
)
|
36 |
|
@@ -67,12 +66,12 @@ class ResearchSystem:
|
|
67 |
raw_research = self.researcher.run(query)
|
68 |
formatted = self.formatter.run(f"Format this research:\n{raw_research}")
|
69 |
return [
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
]
|
74 |
except Exception as e:
|
75 |
-
return [
|
76 |
|
77 |
if __name__ == "__main__":
|
78 |
system = ResearchSystem()
|
|
|
30 |
"tool-call": "assistant",
|
31 |
"tool-response": "user"
|
32 |
},
|
|
|
33 |
trust_remote_code=True
|
34 |
)
|
35 |
|
|
|
66 |
raw_research = self.researcher.run(query)
|
67 |
formatted = self.formatter.run(f"Format this research:\n{raw_research}")
|
68 |
return [
|
69 |
+
[query, None], # User message
|
70 |
+
["Researcher", raw_research], # Research results
|
71 |
+
["Formatter", formatted] # Formatted results
|
72 |
]
|
73 |
except Exception as e:
|
74 |
+
return [[None, f"Error: {str(e)}"]]
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
system = ResearchSystem()
|