ncoop57 commited on
Commit
a534107
·
1 Parent(s): 1570e2e

Make new auto obj every time

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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
- global AUTO
11
-
12
- AUTO.consume_var(content)
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