Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -188,10 +188,10 @@ def claude_hindi_to_tamil(text):
|
|
188 |
def render_translations(text):
|
189 |
dubpro = dubpro_hindi_to_tamil(text)
|
190 |
azure = azure_hindi_to_tamil(text)
|
191 |
-
gemini = gemini_hindi_to_tamil(text)
|
192 |
gpt_4 = openai_hindi_to_tamil(text, model="gpt-4")
|
193 |
# claude_haiku = claude_english_to_hindi(text)
|
194 |
-
return gr.update(value=gpt_4), gr.update(value=dubpro), gr.update(value=
|
195 |
|
196 |
|
197 |
with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochrome") as demo:
|
@@ -204,9 +204,9 @@ with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochr
|
|
204 |
with gr.Row():
|
205 |
gr.Label(value="GPT 4", scale=1)
|
206 |
gpt_4_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
207 |
-
with gr.Row():
|
208 |
-
|
209 |
-
|
210 |
# with gr.Row():
|
211 |
# gr.Label(value="Anthropic Claude 3", scale=1)
|
212 |
# claude_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
@@ -214,7 +214,7 @@ with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochr
|
|
214 |
gr.Label(value="Azure Translate", scale=1)
|
215 |
azure_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
216 |
|
217 |
-
submit.click(render_translations, input_textbox, [gpt_4_textbox, dubpro_model_textbox,
|
218 |
|
219 |
|
220 |
if __name__=="__main__":
|
|
|
188 |
def render_translations(text):
|
189 |
dubpro = dubpro_hindi_to_tamil(text)
|
190 |
azure = azure_hindi_to_tamil(text)
|
191 |
+
# gemini = gemini_hindi_to_tamil(text)
|
192 |
gpt_4 = openai_hindi_to_tamil(text, model="gpt-4")
|
193 |
# claude_haiku = claude_english_to_hindi(text)
|
194 |
+
return gr.update(value=gpt_4), gr.update(value=dubpro), gr.update(value=azure)
|
195 |
|
196 |
|
197 |
with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochrome") as demo:
|
|
|
204 |
with gr.Row():
|
205 |
gr.Label(value="GPT 4", scale=1)
|
206 |
gpt_4_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
207 |
+
# with gr.Row():
|
208 |
+
# gr.Label(value="Google Gemini", scale=1)
|
209 |
+
# google_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
210 |
# with gr.Row():
|
211 |
# gr.Label(value="Anthropic Claude 3", scale=1)
|
212 |
# claude_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
|
|
214 |
gr.Label(value="Azure Translate", scale=1)
|
215 |
azure_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
216 |
|
217 |
+
submit.click(render_translations, input_textbox, [gpt_4_textbox, dubpro_model_textbox, azure_textbox])
|
218 |
|
219 |
|
220 |
if __name__=="__main__":
|