Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def translate(text):
|
4 |
+
# Replace with your actual translation logic
|
5 |
+
return f"Translated text: {text}"
|
6 |
+
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=translate,
|
9 |
+
inputs="text",
|
10 |
+
outputs="text",
|
11 |
+
title="Language Translator"
|
12 |
+
)
|
13 |
+
|
14 |
+
iface.launch()
|