gigswar commited on
Commit
167dabb
·
verified ·
1 Parent(s): 58d3c56

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ def launch_interview():
5
+ # Read the content of the HTML file
6
+ html_content = open("index.html", "r").read()
7
+ return gr.HTML(html_content)
8
+
9
+ # Create a Gradio Interface to serve the HTML file
10
+ app = gr.Interface(fn=launch_interview, live=True)
11
+
12
+ # Run the app
13
+ if __name__ == "__main__":
14
+ app.launch()