camparchimedes commited on
Commit
1813060
·
verified ·
1 Parent(s): 9d34978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -63,7 +63,7 @@ SIDEBAR_INFO = f"""
63
  </div>
64
  """
65
 
66
- @spaces.GPU()
67
  def transcribe(microphone, file_upload):
68
 
69
  file = microphone if microphone is not None else file_upload
@@ -147,14 +147,14 @@ with iface:
147
  transcribe_btn = gr.Button("Transcribe Interview")
148
 
149
  with gr.Row():
150
- text_output = gr.Textbox(label="Transkribert Tekst")
151
- with gr.Column():
152
  system_info = gr.Textbox(label="System Info")
153
-
154
  with gr.Tabs():
155
  with gr.TabItem("Download PDF"):
156
- pdf_text_only = gr.Button("Download PDF with Transcribed Text")
157
- pdf_output = gr.File(label="Download PDF")
158
 
159
  pdf_text_only.click(fn=lambda text: save_to_pdf(text, ""), inputs=[text_output], outputs=[pdf_output])
160
 
 
63
  </div>
64
  """
65
 
66
+ @spaces.GPU(duration=120)
67
  def transcribe(microphone, file_upload):
68
 
69
  file = microphone if microphone is not None else file_upload
 
147
  transcribe_btn = gr.Button("Transcribe Interview")
148
 
149
  with gr.Row():
150
+ text_output = gr.Textbox(label="Transkribert Tekst")
151
+ with gr.Column(scale=3):
152
  system_info = gr.Textbox(label="System Info")
153
+
154
  with gr.Tabs():
155
  with gr.TabItem("Download PDF"):
156
+ pdf_text_only = gr.Button("Last ned pdf med transkribert tekst")
157
+ pdf_output = gr.File(label="/.docx")
158
 
159
  pdf_text_only.click(fn=lambda text: save_to_pdf(text, ""), inputs=[text_output], outputs=[pdf_output])
160