Gregniuki commited on
Commit
9a7a3b0
·
verified ·
1 Parent(s): 0d07eeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,7 +1,11 @@
 
1
  from flask import Flask, send_from_directory
2
  import gradio as gr
3
  import threading
4
 
 
 
 
5
  # Create a Flask app to serve static files
6
  flask_app = Flask(__name__)
7
 
@@ -35,7 +39,8 @@ iface = gr.Interface(
35
  outputs=gr.HTML(), # Output is HTML content
36
  live=True, # Keep the interface live
37
  title="Mario HTML Game",
38
- description="Play the Mario HTML game embedded in Gradio!"
 
39
  )
40
 
41
  # Launch the Gradio app
 
1
+ import os
2
  from flask import Flask, send_from_directory
3
  import gradio as gr
4
  import threading
5
 
6
+ # Set the temporary directory for Gradio to a writable location
7
+ os.environ["GRADIO_TEMP_DIR"] = "/tmp"
8
+
9
  # Create a Flask app to serve static files
10
  flask_app = Flask(__name__)
11
 
 
39
  outputs=gr.HTML(), # Output is HTML content
40
  live=True, # Keep the interface live
41
  title="Mario HTML Game",
42
+ description="Play the Mario HTML game embedded in Gradio!",
43
+ allow_flagging="never" # Disable flagging
44
  )
45
 
46
  # Launch the Gradio app