Spaces:
Sleeping
Sleeping
Edward J. Schwartz
commited on
Commit
·
2bce853
1
Parent(s):
8ef67fc
Pass file as argument
Browse files
app.py
CHANGED
@@ -16,11 +16,12 @@ model = gr.load("ejschwartz/oo-method-test-model-bylibrary", src="models")
|
|
16 |
# ],
|
17 |
# live=True, title="Is it a method or a function?").launch(server_name="0.0.0.0", server_port=7860)
|
18 |
|
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:
|
26 |
addrstr = " ".join([f"--function-at {x}" for x in addrs])
|
|
|
16 |
# ],
|
17 |
# live=True, title="Is it a method or a function?").launch(server_name="0.0.0.0", server_port=7860)
|
18 |
|
|
|
|
|
19 |
|
20 |
def get_all_dis(bname, addrs=None):
|
21 |
|
22 |
+
anafile = tempfile.NamedTemporaryFile(prefix=os.path.basename(bname) + "_", suffix=".bat_ana")
|
23 |
+
ananame = anafile.name
|
24 |
+
|
25 |
addrstr = ""
|
26 |
if addrs is not None:
|
27 |
addrstr = " ".join([f"--function-at {x}" for x in addrs])
|