gettinglost-gradio / gradio-interface.py
pjgerrits
Initial commit
d740e1a
raw
history blame
307 Bytes
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()