Spaces:
Sleeping
Sleeping
Edward J. Schwartz
commited on
Commit
·
8ef67fc
1
Parent(s):
58773bb
Pass file as argument
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ model = gr.load("ejschwartz/oo-method-test-model-bylibrary", src="models")
|
|
19 |
anafile = tempfile.NamedTemporaryFile(prefix=os.path.basename(bname) + "_", suffix=".bat_ana")
|
20 |
ananame = anafile.name
|
21 |
|
22 |
-
def get_all_dis(addrs=None):
|
23 |
|
24 |
addrstr = ""
|
25 |
if addrs is not None:
|
@@ -54,7 +54,7 @@ def get_all_dis(addrs=None):
|
|
54 |
return func_dis
|
55 |
|
56 |
def get_funs(f):
|
57 |
-
funs = get_all_dis()
|
58 |
return str(funs)
|
59 |
|
60 |
demo = gr.Interface(fn=get_funs, inputs="file", outputs="textarea")
|
|
|
19 |
anafile = tempfile.NamedTemporaryFile(prefix=os.path.basename(bname) + "_", suffix=".bat_ana")
|
20 |
ananame = anafile.name
|
21 |
|
22 |
+
def get_all_dis(bname, addrs=None):
|
23 |
|
24 |
addrstr = ""
|
25 |
if addrs is not None:
|
|
|
54 |
return func_dis
|
55 |
|
56 |
def get_funs(f):
|
57 |
+
funs = get_all_dis(f.name)
|
58 |
return str(funs)
|
59 |
|
60 |
demo = gr.Interface(fn=get_funs, inputs="file", outputs="textarea")
|