Spaces:
Runtime error
Runtime error
File size: 307 Bytes
d740e1a |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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()
|