Update app.py
Browse files
app.py
CHANGED
@@ -88,8 +88,9 @@ def para1(choices, source_sentences):
|
|
88 |
else:
|
89 |
final = f"{final}.{joint_value}"
|
90 |
final = final.replace("..", ".")
|
|
|
91 |
#print(final)
|
92 |
-
return
|
93 |
|
94 |
|
95 |
if choices == "Passive to active":
|
@@ -117,7 +118,9 @@ def para1(choices, source_sentences):
|
|
117 |
final = f"{final}.{joint_value}"
|
118 |
final = final.replace("..", ".")
|
119 |
#print(final)
|
120 |
-
|
|
|
|
|
121 |
|
122 |
input_1 = gr.inputs.Radio(choices=choices, label='Choose a model.')
|
123 |
input_2 = gr.inputs.Textbox(placeholder='Enter your text here...', label='Input')
|
|
|
88 |
else:
|
89 |
final = f"{final}.{joint_value}"
|
90 |
final = final.replace("..", ".")
|
91 |
+
new_output = final.replace('Active to passive:', "")
|
92 |
#print(final)
|
93 |
+
return new_output
|
94 |
|
95 |
|
96 |
if choices == "Passive to active":
|
|
|
118 |
final = f"{final}.{joint_value}"
|
119 |
final = final.replace("..", ".")
|
120 |
#print(final)
|
121 |
+
new_output = final.replace('Passive to active:', "")
|
122 |
+
#print(final)
|
123 |
+
return new_output
|
124 |
|
125 |
input_1 = gr.inputs.Radio(choices=choices, label='Choose a model.')
|
126 |
input_2 = gr.inputs.Textbox(placeholder='Enter your text here...', label='Input')
|