File size: 343 Bytes
2be5f07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import os

# Run the setup script to extract the .zip file
os.system("sh setup.sh")

def serve_html():
    with open("index.html", "r") as file:
        html_content = file.read()
    return html_content

interface = gr.Interface(fn=serve_html, inputs=[], outputs="html")

if __name__ == "__main__":
    interface.launch()