Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from pyswip import Prolog
|
3 |
-
|
|
|
4 |
|
5 |
def yes_man(message, history):
|
6 |
-
prolog = Prolog()
|
7 |
# % Define the person
|
8 |
prolog.assertz("us_citizen(john_doe)")
|
9 |
prolog.assertz("lawfully_residing(john_doe, 'U.S.', date(1996, 1, 1))")
|
|
|
1 |
import gradio as gr
|
2 |
from pyswip import Prolog
|
3 |
+
prolog = Prolog()
|
4 |
+
prolog.consult("knowledge_base.pl")
|
5 |
|
6 |
def yes_man(message, history):
|
|
|
7 |
# % Define the person
|
8 |
prolog.assertz("us_citizen(john_doe)")
|
9 |
prolog.assertz("lawfully_residing(john_doe, 'U.S.', date(1996, 1, 1))")
|