ncoop57
commited on
Commit
·
a534107
1
Parent(s):
1570e2e
Make new auto obj every time
Browse files
app.py
CHANGED
@@ -4,13 +4,10 @@ import gradio as gr
|
|
4 |
|
5 |
from autocards.autocards import Autocards
|
6 |
|
7 |
-
AUTO = Autocards()
|
8 |
-
|
9 |
def cardify(content):
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
AUTO.to_json("output.json", prefix="")
|
14 |
with open("output_basic.json") as f:
|
15 |
res = json.load(f)
|
16 |
|
|
|
4 |
|
5 |
from autocards.autocards import Autocards
|
6 |
|
|
|
|
|
7 |
def cardify(content):
|
8 |
+
auto = Autocards()
|
9 |
+
auto.consume_var(content)
|
10 |
+
auto.to_json("output.json", prefix="")
|
|
|
11 |
with open("output_basic.json") as f:
|
12 |
res = json.load(f)
|
13 |
|