Update app.py
Browse files
app.py
CHANGED
@@ -100,34 +100,34 @@ with gr.Blocks() as demo:
|
|
100 |
text_streaming = output_streaming(text_streaming,text)
|
101 |
gr.Textbox(value=text, label="Result", autofocus=True)
|
102 |
|
103 |
-
with gr.Tab("Upload File"):
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
demo.launch(
|
|
|
100 |
text_streaming = output_streaming(text_streaming,text)
|
101 |
gr.Textbox(value=text, label="Result", autofocus=True)
|
102 |
|
103 |
+
# with gr.Tab("Upload File"):
|
104 |
+
# with gr.Row():
|
105 |
+
# with gr.Column():
|
106 |
+
# upl_input = gr.Audio( type="filepath", label="Upload a file")
|
107 |
+
# with gr.Row():
|
108 |
+
# clr_btn = gr.Button(value="Clear", variant="secondary")
|
109 |
+
# sub_btn = gr.Button(value="submit")
|
110 |
+
# gr.Examples(examples=[
|
111 |
+
# os.path.join(os.path.dirname(__file__),"examples/politics.mp3"),
|
112 |
+
# os.path.join(os.path.dirname(__file__),"examples/law1.mp3"),
|
113 |
+
# os.path.join(os.path.dirname(__file__),"examples/law2.mp3"),
|
114 |
+
# os.path.join(os.path.dirname(__file__),"examples/law3.mp3"),
|
115 |
+
# os.path.join(os.path.dirname(__file__),"examples/economy.mp3"),
|
116 |
+
# os.path.join(os.path.dirname(__file__),"examples/general.mp3")
|
117 |
+
# ],
|
118 |
+
# inputs = upl_input)
|
119 |
+
# with gr.Column():
|
120 |
+
# lbl_output = gr.HighlightedText(label="Result")
|
121 |
+
|
122 |
+
# clr_btn.click(
|
123 |
+
# fn=clear_inputs_and_outputs,
|
124 |
+
# inputs=[],
|
125 |
+
# outputs=[upl_input, lbl_output]
|
126 |
+
# )
|
127 |
+
# sub_btn.click(
|
128 |
+
# fn=uploaded_process,
|
129 |
+
# inputs=[upl_input],
|
130 |
+
# outputs=[lbl_output]
|
131 |
+
# )
|
132 |
+
|
133 |
+
demo.launch(server_name="0.0.0.0", server_port=8085)
|