dlaima commited on
Commit
bb78253
·
verified ·
1 Parent(s): 043dbe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -29,16 +29,16 @@ class MyAgent:
29
  )
30
 
31
  def __call__(self, question: str) -> str:
32
- messages = [
33
- {"role": "system", "content": SYSTEM_PROMPT},
34
- {"role": "user", "content": question}
35
- ]
36
- try:
37
- return self.model.run(messages)
38
- except Exception as e:
39
- import traceback
40
- traceback.print_exc()
41
- return f"AGENT ERROR: {e}"
42
 
43
 
44
  def run_and_submit_all(profile: gr.OAuthProfile | None):
 
29
  )
30
 
31
  def __call__(self, question: str) -> str:
32
+ messages = [
33
+ {"role": "system", "content": SYSTEM_PROMPT},
34
+ {"role": "user", "content": question}
35
+ ]
36
+ try:
37
+ return self.model.run(messages)
38
+ except Exception as e:
39
+ import traceback
40
+ traceback.print_exc()
41
+ return f"AGENT ERROR: {e}"
42
 
43
 
44
  def run_and_submit_all(profile: gr.OAuthProfile | None):