Porjaz commited on
Commit
e963d01
·
verified ·
1 Parent(s): 9ad9e87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -59
app.py CHANGED
@@ -327,58 +327,6 @@ button {
327
  }
328
  """
329
 
330
- transcriber_app = gr.Blocks(css=css)
331
-
332
- with transcriber_app:
333
- gr.HTML(project_description_header)
334
-
335
- with gr.Box(elem_classes="main-content"):
336
- audio_input = gr.Audio(label="Upload or Record Audio", sources=["microphone", "upload"])
337
- transcribe_button = gr.Button("Транскрибирај")
338
- output_text = gr.Textbox(label="Транскрипција")
339
- download_file = gr.File(label="Зачувај го транскриптот", file_count="single")
340
-
341
- # Add your transcription logic here
342
- # For example:
343
- # transcribe_button.click(fn=your_transcription_function, inputs=audio_input, outputs=[output_text, download_file])
344
-
345
- gr.HTML(project_description_footer)
346
-
347
- transcriber_app.launch()
348
-
349
-
350
-
351
- transcriber_app = gr.Blocks(css=css, delete_cache=(60, 120))
352
-
353
- with transcriber_app:
354
- gr.HTML(project_description)
355
-
356
- # Your audio input, buttons, and text fields go here
357
-
358
- # Example:
359
- # audio_input = gr.Audio(label="Upload or Record Audio")
360
- # transcribe_button = gr.Button("Transcribe")
361
- # output_text = gr.Textbox(label="Transcription")
362
-
363
-
364
-
365
- # Custom CSS
366
- css = """
367
- .gradio-container {
368
- background-color: #f0f0f0; /* Set your desired background color */
369
- }
370
- .custom-markdown p, .custom-markdown li, .custom-markdown h2, .custom-markdown a, .custom-markdown strong {
371
- font-size: 15px !important;
372
- font-family: Arial, sans-serif !important;
373
- color: black !important;
374
- }
375
- button {
376
- color: orange !important;
377
- }
378
- .gradio-container {
379
- background-color: #f3f3f3 !important;
380
- }
381
- """
382
 
383
 
384
 
@@ -388,13 +336,7 @@ with transcriber_app:
388
  state = gr.State()
389
  # gr.HTML('<img src="https://i.ibb.co/hYhkkhg/Buki-logo-1.jpg" alt="Bookie logo" style="float: right; width: 150px; height: 150px; margin-left: 10px;" />')
390
  gr.HTML(project_description_header)
391
-
392
- # gr.TabbedInterface(
393
- # [mic_transcribe_whisper, mic_transcribe_compare],
394
- # ["Буки-Whisper транскрипција", "Споредба на модели"],
395
- # )
396
- # state = gr.State(value=[], delete_callback=lambda v: print("STATE DELETED"))
397
-
398
  gr.TabbedInterface(
399
  [mic_transcribe_wav2vec2, file_transcribe_wav2vec2],
400
  ["Буки-w2v2 транскрипција од микрофон", "Буки-w2v2 транскрипција од фајл"],
 
327
  }
328
  """
329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
 
331
 
332
 
 
336
  state = gr.State()
337
  # gr.HTML('<img src="https://i.ibb.co/hYhkkhg/Buki-logo-1.jpg" alt="Bookie logo" style="float: right; width: 150px; height: 150px; margin-left: 10px;" />')
338
  gr.HTML(project_description_header)
339
+
 
 
 
 
 
 
340
  gr.TabbedInterface(
341
  [mic_transcribe_wav2vec2, file_transcribe_wav2vec2],
342
  ["Буки-w2v2 транскрипција од микрофон", "Буки-w2v2 транскрипција од фајл"],