Spaces:

npc0 commited on
Commit
c4fcff3
1 Parent(s): 7d70942

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -16,11 +16,12 @@ us_citizen(john_doe)
16
  lawfully_residing(john_doe, 'U.S.', date(1996, 1, 1))
17
  condition(john_doe, 'Blind')""")
18
  janus.consult(tmp.name)
19
- tmp.close()
20
  if message.endswith("?"):
21
- return janus.query_once("eligible_for_ssi(john_doe)")
22
  else:
23
- return '\n- '.join(list(janus.query("eligible_for_ssi(john_doe)")))
 
 
24
 
25
  gr.ChatInterface(
26
  yes_man,
 
16
  lawfully_residing(john_doe, 'U.S.', date(1996, 1, 1))
17
  condition(john_doe, 'Blind')""")
18
  janus.consult(tmp.name)
 
19
  if message.endswith("?"):
20
+ result = janus.query_once("eligible_for_ssi(john_doe)")
21
  else:
22
+ result = '\n- '.join(list(janus.query("eligible_for_ssi(john_doe)")))
23
+ tmp.close()
24
+ return result
25
 
26
  gr.ChatInterface(
27
  yes_man,