jessica07 commited on
Commit
ef3ac9c
·
verified ·
1 Parent(s): 45676fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -12
app.py CHANGED
@@ -1,18 +1,18 @@
1
  import gradio as gr
2
- from pathlib import Path
3
  from deepgram_transcribe import process
4
- import os
5
 
6
- track_title = gr.Markdown(
7
- """
8
- You can track your progress here
9
- """)
10
-
11
- def process_submit(title, file, progress=gr.Progress()):
12
  progress(0, desc="Starting...")
13
- zip_folder_path = process(file, progress)
14
  return zip_folder_path
15
 
 
 
 
 
 
 
 
16
  file_output = gr.File()
17
 
18
  title = gr.Markdown(
@@ -21,6 +21,4 @@ title = gr.Markdown(
21
  Upload your audio file here.
22
  """)
23
 
24
- gr.Interface(fn=process_submit, inputs=[title, file_output], outputs="file", allow_flagging="never").launch()
25
-
26
-
 
1
  import gradio as gr
 
2
  from deepgram_transcribe import process
 
3
 
4
+ def process_submit(title, file, tag, progress=gr.Progress()):
 
 
 
 
 
5
  progress(0, desc="Starting...")
6
+ zip_folder_path = process(file, tag, progress)
7
  return zip_folder_path
8
 
9
+ textbox = gr.Textbox(
10
+ label="TAGS",
11
+ info="Examples: DG, vogue, etc.",
12
+ lines=1,
13
+ value="DG",
14
+ )
15
+
16
  file_output = gr.File()
17
 
18
  title = gr.Markdown(
 
21
  Upload your audio file here.
22
  """)
23
 
24
+ gr.Interface(fn=process_submit, inputs=[title, file_output, textbox], outputs="file", allow_flagging="never").launch()