import gradio as gr import subprocess import threading import time def launch_streamlit(): subprocess.Popen([ "streamlit", "run", "main.py", # ✅ Now at root level "--server.port=7861", "--server.address=0.0.0.0", "--server.headless=true" ]) def create_interface(): threading.Thread(target=launch_streamlit, daemon=True).start() time.sleep(8) with gr.Blocks(title="🇮🇳 Corpus Collection Engine") as demo: gr.HTML("""
AI-powered platform for preserving Indian cultural heritage