Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|