Quazim0t0 commited on
Commit
df6ba09
·
verified ·
1 Parent(s): 38fca59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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
- gr.ChatMessage(role="user", content=query),
71
- gr.ChatMessage(role="Researcher", content=raw_research),
72
- gr.ChatMessage(role="Formatter", content=formatted)
73
  ]
74
  except Exception as e:
75
- return [gr.ChatMessage(role="Error", content=str(e))]
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()