Tonic commited on
Commit
950e427
·
1 Parent(s): 7c30abd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -139,10 +139,6 @@ def process_speech(input_language, audio_input):
139
  except Exception as e:
140
  return f"{e}"
141
 
142
-
143
- import os
144
- import uuid
145
-
146
  def convert_text_to_speech(input_text: str, source_language: str, target_language: str) -> tuple[str, str]:
147
  client = Client("https://facebook-seamless-m4t.hf.space/--replicas/8cllp/")
148
 
@@ -585,7 +581,7 @@ def clear():
585
 
586
  def create_interface():
587
  # with gr.Blocks(theme='ParityError/Anime') as iface:
588
- with gr.Blocks() as interface:
589
  # Display the welcome message
590
  gr.Markdown(welcome_message)
591
  # Add a 'None' or similar option to represent no selection
 
139
  except Exception as e:
140
  return f"{e}"
141
 
 
 
 
 
142
  def convert_text_to_speech(input_text: str, source_language: str, target_language: str) -> tuple[str, str]:
143
  client = Client("https://facebook-seamless-m4t.hf.space/--replicas/8cllp/")
144
 
 
581
 
582
  def create_interface():
583
  # with gr.Blocks(theme='ParityError/Anime') as iface:
584
+ with gr.Blocks(theme='ParityError/Anime') as interface:
585
  # Display the welcome message
586
  gr.Markdown(welcome_message)
587
  # Add a 'None' or similar option to represent no selection