ftx7go's picture
Update app.py
8d0869a verified
raw
history blame
446 Bytes
from flask import Flask, send_file
import gradio as gr
app = Flask(__name__)
# Route to serve HTML file
@app.route("/")
def serve_html():
return send_file("re.html")
# Run Gradio separately
def run_gradio():
gr.Interface(lambda: "Gradio App Running!", inputs=[], outputs="text").launch(share=True)
if __name__ == "__main__":
from threading import Thread
Thread(target=run_gradio).start()
app.run(host="0.0.0.0", port=7860)