Gregniuki commited on
Commit
8233106
·
verified ·
1 Parent(s): 63ce4a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -31,10 +31,9 @@ def serve_static(path):
31
  return send_from_directory("mario", path)
32
 
33
  # Read the index.html file
 
34
  def serve_game():
35
- with open("mario/index.html", "r") as file:
36
- html_content = file.read()
37
- return html_content
38
 
39
  # Create a Gradio interface
40
  iface = gr.Interface(
 
31
  return send_from_directory("mario", path)
32
 
33
  # Read the index.html file
34
+ no
35
  def serve_game():
36
+ return '<iframe src="mario/index.html" width="800" height="600"></iframe>'
 
 
37
 
38
  # Create a Gradio interface
39
  iface = gr.Interface(