Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
•
c7216c7
1
Parent(s):
c2228c8
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,14 @@ def needs_analysis():
|
|
23 |
nt = Network()
|
24 |
nt.from_nx(nx_graph)
|
25 |
html = nt.generate_html()
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
demo = gr.Interface(
|
|
|
23 |
nt = Network()
|
24 |
nt.from_nx(nx_graph)
|
25 |
html = nt.generate_html()
|
26 |
+
#need to remove ' from HTML
|
27 |
+
html = html.replace("'", "\"")
|
28 |
+
|
29 |
+
return f"""<iframe style="width: 100%; height: 600px;margin:0 auto" name="result" allow="midi; geolocation; microphone; camera;
|
30 |
+
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
31 |
+
allow-scripts allow-same-origin allow-popups
|
32 |
+
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|
33 |
+
allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>"""
|
34 |
|
35 |
|
36 |
demo = gr.Interface(
|