MihaiHuggingFace commited on
Commit
74618fc
·
verified ·
1 Parent(s): 7ddc3f2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
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()