hedtorresca commited on
Commit
211555e
·
verified ·
1 Parent(s): 9419e53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -1,13 +1,11 @@
1
  import gradio as gr
2
 
3
- def display_html():
4
- with open("Market.html", "r", encoding="utf-8") as file:
5
- html_content = file.read()
6
- return html_content
7
 
8
- app = gr.Blocks()
 
 
9
 
10
- with app:
11
- gr.HTML(display_html())
12
-
13
- app.launch(share=True)
 
1
  import gradio as gr
2
 
3
+ with open("Market.html") as f:
4
+ lines = f.readlines()
 
 
5
 
6
+ with gr.Blocks() as demo:
7
+ input_mic = gr.HTML(lines)
8
+ out_text = gr.Textbox()
9
 
10
+ if __name__ == "__main__":
11
+ demo.launch()