Abdurahman commited on
Commit
81cf146
·
1 Parent(s): b8881c6
Files changed (2) hide show
  1. app.py +1 -1
  2. util.py +4 -1
app.py CHANGED
@@ -76,7 +76,7 @@ with gr.Blocks() as app:
76
  )
77
  with gr.Row():
78
  match_box = gr.Markdown(
79
- """Pronunciation Feedback
80
 
81
  Matching and mismatched characters will be visualized here...
82
  """
 
76
  )
77
  with gr.Row():
78
  match_box = gr.Markdown(
79
+ """### Pronunciation Feedback
80
 
81
  Matching and mismatched characters will be visualized here...
82
  """
util.py CHANGED
@@ -4,6 +4,9 @@ import string
4
  import epitran
5
  from difflib import SequenceMatcher
6
 
 
 
 
7
  ## Global Vars
8
  # Lists of Uyghur short and long texts
9
  short_texts = [
@@ -97,7 +100,7 @@ def calculate_pronunciation_accuracy(reference_text, output_text, script):
97
  pronunciation_accuracy = match_ratio * 100
98
 
99
  # Generate Markdown-compatible styled text
100
- comparison_md = """Pronunciation Feedback
101
 
102
  """
103
  for opcode, i1, i2, j1, j2 in matcher.get_opcodes():
 
4
  import epitran
5
  from difflib import SequenceMatcher
6
 
7
+ # import httpcore
8
+ # setattr(httpcore, 'SyncHTTPTransport', 'AsyncHTTPProxy')
9
+
10
  ## Global Vars
11
  # Lists of Uyghur short and long texts
12
  short_texts = [
 
100
  pronunciation_accuracy = match_ratio * 100
101
 
102
  # Generate Markdown-compatible styled text
103
+ comparison_md = """### Pronunciation Feedback
104
 
105
  """
106
  for opcode, i1, i2, j1, j2 in matcher.get_opcodes():