Spaces:
Running
Running
Minors fixes
Browse files- README.md +4 -4
- app.py +1 -1
- modules/m_active_voice.py +1 -1
- modules/m_connector.py +1 -1
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 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
|
| 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
|
| 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.
|
| 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 |
|