Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
22 |
else:
|
23 |
-
|
|
|
|
|
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,
|