Spaces:
Sleeping
Sleeping
Commit
·
9ae0280
1
Parent(s):
509661f
Removed blocks
Browse files- .gradio/flagged/dataset1.csv +2 -0
- app.py +2 -13
.gradio/flagged/dataset1.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
text,output,timestamp
|
2 |
+
I want to eat pizza with my dog,I want to eat pizza 🍕 with my dog 🐶,2025-08-01 16:23:52.685555
|
app.py
CHANGED
@@ -40,18 +40,7 @@ def translate_to_emoji(text):
|
|
40 |
return result
|
41 |
|
42 |
# UI
|
43 |
-
|
44 |
-
gr.Markdown("# Emojilator 🦖 \n convert your text into emoji-enhanced messages!")
|
45 |
-
|
46 |
-
input_box = gr.Textbox(label="Enter your text", lines=2)
|
47 |
-
|
48 |
-
submit_btn = gr.Button("Translate")
|
49 |
-
clear_btn = gr.Button("Clear")
|
50 |
-
|
51 |
-
output_box = gr.Textbox(label="Output", lines=2)
|
52 |
-
|
53 |
-
submit_btn.click(fn=translate_to_emoji, inputs=input_box, outputs=output_box)
|
54 |
-
clear_btn.click(fn=lambda: "", inputs=None, outputs=output_box)
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
-
app.launch()
|
|
|
40 |
return result
|
41 |
|
42 |
# UI
|
43 |
+
app = gr.Interface(fn=translate_to_emoji, inputs="text", outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
if __name__ == "__main__":
|
46 |
+
app.launch()
|