Spaces:
Build error
Build error
Commit
·
c9d02af
1
Parent(s):
b55eab0
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,4 +61,10 @@ def process_request(input_text):
|
|
| 61 |
context = detect_context(input_text)
|
| 62 |
translation = translate_text(input_text)
|
| 63 |
return translation, context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
).launch()
|
|
|
|
| 61 |
context = detect_context(input_text)
|
| 62 |
translation = translate_text(input_text)
|
| 63 |
return translation, context
|
| 64 |
+
|
| 65 |
+
gr.Interface(
|
| 66 |
+
fn=process_request,
|
| 67 |
+
inputs="text",
|
| 68 |
+
outputs="text",
|
| 69 |
+
live=True
|
| 70 |
).launch()
|