attacker-exploiting-everyone commited on
Commit
1cfbd3f
·
verified ·
1 Parent(s): 58d9740

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,9 +7,9 @@ def greet(name):
7
  style="width: 100%; height: 100vh; border: none;"></iframe>
8
  '''
9
 
10
- # No need to use the `name` input anymore since it's auto-firing an iframe
11
  return iframe_code
12
 
13
- # Allow raw HTML rendering
14
- demo = gr.Interface(fn=greet, inputs="text", outputs="html")
15
  demo.launch()
 
7
  style="width: 100%; height: 100vh; border: none;"></iframe>
8
  '''
9
 
10
+ # Return iframe as HTML
11
  return iframe_code
12
 
13
+ # Allow raw HTML rendering, no inputs needed
14
+ demo = gr.Interface(fn=greet, inputs=None, outputs="html")
15
  demo.launch()