nanom commited on
Commit
e7339fb
β€’
1 Parent(s): e68d7ec

Minors fixes

Browse files
Files changed (4) hide show
  1. README.md +4 -4
  2. app.py +1 -1
  3. modules/m_active_voice.py +1 -1
  4. modules/m_connector.py +1 -1
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- title: πŸ‡ΊπŸ‡Έ 2Passive Voice
3
- emoji: πŸ’€ 🎀
4
- colorFrom: red
5
- colorTo: white
6
  sdk: gradio
7
  sdk_version: 3.16.2
8
  app_file: app.py
 
1
  ---
2
+ title: 2Passive Voice
3
+ emoji: πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§
4
+ colorFrom: black
5
+ colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.16.2
8
  app_file: app.py
app.py CHANGED
@@ -5,7 +5,7 @@ iface = gr.Blocks(css="css/style.css")
5
  conn = Connector()
6
 
7
  with iface:
8
- gr.HTML("<center><h5>Active to Passive Voice (Beta)</h5></center>")
9
  with gr.Row():
10
  with gr.Column():
11
  in_sentence = gr.Textbox(
 
5
  conn = Connector()
6
 
7
  with iface:
8
+ gr.HTML("<center><h5>πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ 2Passive Voice (Beta)</h5></center>")
9
  with gr.Row():
10
  with gr.Column():
11
  in_sentence = gr.Textbox(
modules/m_active_voice.py CHANGED
@@ -176,7 +176,7 @@ class ActiveVoice(Parser):
176
 
177
  return diff.strip()
178
 
179
- def to_pasive(
180
  self,
181
  sentence: str,
182
  debug: bool=False
 
176
 
177
  return diff.strip()
178
 
179
+ def to_passive(
180
  self,
181
  sentence: str,
182
  debug: bool=False
modules/m_connector.py CHANGED
@@ -16,7 +16,7 @@ class Connector:
16
  ) -> Tuple[str,str]:
17
 
18
  try:
19
- data = self.avoice.to_pasive(sentence)
20
  except Exception as e:
21
  return self.html.error(str(e)), str(e)
22
 
 
16
  ) -> Tuple[str,str]:
17
 
18
  try:
19
+ data = self.avoice.to_passive(sentence)
20
  except Exception as e:
21
  return self.html.error(str(e)), str(e)
22