ahassoun commited on
Commit
3388882
1 Parent(s): bb9d46e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -31
app.py CHANGED
@@ -1,32 +1,13 @@
1
  import json
2
  import gradio as gr
3
  from gradio import Dropdown
4
- # from share_btn import community_icon_html, loading_icon_html, share_js
5
  import os
6
  import shutil
7
  import re
8
  user_choice = ""
9
 
10
- # with open("characters.json", "r") as file:
11
- # data = json.load(file)
12
- # characters = [
13
- # {
14
- # "image": item["image"],
15
- # "title": item["title"],
16
- # "speaker": item["speaker"]
17
- # }
18
- # for item in data
19
- # ]
20
 
21
- # tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
22
-
23
-
24
- # def update_selection(selected_state: gr.SelectData):
25
- # c_image = characters[selected_state.index]["image"]
26
- # c_title = characters[selected_state.index]["title"]
27
- # c_speaker = characters[selected_state.index]["speaker"]
28
-
29
- # return c_title, selected_state
30
 
31
 
32
  def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
@@ -146,17 +127,6 @@ span.record-icon > span.dot.svelte-1thnwz {
146
  transform: rotate(360deg);
147
  }
148
  }
149
- #share-btn-container {
150
- display: flex;
151
- padding-left: 0.5rem !important;
152
- padding-right: 0.5rem !important;
153
- background-color: #000000;
154
- justify-content: center;
155
- align-items: center;
156
- border-radius: 9999px !important;
157
- max-width: 15rem;
158
- height: 36px;
159
- }
160
  """
161
 
162
 
 
1
  import json
2
  import gradio as gr
3
  from gradio import Dropdown
 
4
  import os
5
  import shutil
6
  import re
7
  user_choice = ""
8
 
9
+ tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
 
 
 
 
 
 
 
 
 
10
 
 
 
 
 
 
 
 
 
 
11
 
12
 
13
  def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
 
127
  transform: rotate(360deg);
128
  }
129
  }
 
 
 
 
 
 
 
 
 
 
 
130
  """
131
 
132