Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,7 +220,7 @@ def translation_text(source_lang, target_lang, user_input):
|
|
| 220 |
def print_s(source_lang, target_lang, text0):
|
| 221 |
print(source_lang)
|
| 222 |
return lang_id[source_lang], lang_id[target_lang], text0
|
| 223 |
-
demo = gr.Blocks()
|
| 224 |
|
| 225 |
with demo:
|
| 226 |
text0 = gr.Textbox(label = "Enter text here....")
|
|
@@ -256,4 +256,4 @@ with demo:
|
|
| 256 |
b2 = gr.Button("identification of language")
|
| 257 |
b2.click(lang_ident,inputs = text0, outputs=text)
|
| 258 |
|
| 259 |
-
demo.launch(
|
|
|
|
| 220 |
def print_s(source_lang, target_lang, text0):
|
| 221 |
print(source_lang)
|
| 222 |
return lang_id[source_lang], lang_id[target_lang], text0
|
| 223 |
+
demo = gr.Blocks(title = "Text Analyzer")
|
| 224 |
|
| 225 |
with demo:
|
| 226 |
text0 = gr.Textbox(label = "Enter text here....")
|
|
|
|
| 256 |
b2 = gr.Button("identification of language")
|
| 257 |
b2.click(lang_ident,inputs = text0, outputs=text)
|
| 258 |
|
| 259 |
+
demo.launch()
|