Spaces:
Runtime error
Runtime error
import gradio as gr | |
import subprocess | |
def launch_flask(): | |
# Run the Flask app in a subprocess | |
subprocess.Popen(["python", "app.py"]) | |
# Create a Gradio interface that launches the Flask app | |
iface = gr.Interface(fn=launch_flask, inputs=[], outputs=[]) | |
if __name__ == "__main__": | |
iface.launch() | |