Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -179,10 +179,10 @@ def claude_english_to_hindi(text):
|
|
| 179 |
def render_translations(text):
|
| 180 |
dubpro = dubpro_english_to_hindi(text)
|
| 181 |
azure = azure_english_to_hindi(text)
|
| 182 |
-
gemini = gemini_english_to_hindi(text)
|
| 183 |
gpt_4 = openai_english_to_hindi(text, model="gpt-4")
|
| 184 |
claude_haiku = claude_english_to_hindi(text)
|
| 185 |
-
return gr.update(value=gpt_4), gr.update(value=dubpro), gr.update(value=
|
| 186 |
|
| 187 |
|
| 188 |
with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochrome") as demo:
|
|
@@ -195,9 +195,9 @@ with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochr
|
|
| 195 |
with gr.Row():
|
| 196 |
gr.Label(value="GPT 4", scale=1)
|
| 197 |
gpt_4_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
| 198 |
-
with gr.Row():
|
| 199 |
-
|
| 200 |
-
|
| 201 |
with gr.Row():
|
| 202 |
gr.Label(value="Anthropic Claude 3", scale=1)
|
| 203 |
claude_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
|
@@ -205,7 +205,7 @@ with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochr
|
|
| 205 |
gr.Label(value="Azure Translate", scale=1)
|
| 206 |
azure_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
| 207 |
|
| 208 |
-
submit.click(render_translations, input_textbox, [gpt_4_textbox, dubpro_model_textbox,
|
| 209 |
|
| 210 |
|
| 211 |
if __name__=="__main__":
|
|
|
|
| 179 |
def render_translations(text):
|
| 180 |
dubpro = dubpro_english_to_hindi(text)
|
| 181 |
azure = azure_english_to_hindi(text)
|
| 182 |
+
# gemini = gemini_english_to_hindi(text)
|
| 183 |
gpt_4 = openai_english_to_hindi(text, model="gpt-4")
|
| 184 |
claude_haiku = claude_english_to_hindi(text)
|
| 185 |
+
return gr.update(value=gpt_4), gr.update(value=dubpro), gr.update(value=claude_haiku), gr.update(value=azure)
|
| 186 |
|
| 187 |
|
| 188 |
with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochrome") as demo:
|
|
|
|
| 195 |
with gr.Row():
|
| 196 |
gr.Label(value="GPT 4", scale=1)
|
| 197 |
gpt_4_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
| 198 |
+
# with gr.Row():
|
| 199 |
+
# gr.Label(value="Google Gemini", scale=1)
|
| 200 |
+
# google_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
| 201 |
with gr.Row():
|
| 202 |
gr.Label(value="Anthropic Claude 3", scale=1)
|
| 203 |
claude_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
|
|
|
| 205 |
gr.Label(value="Azure Translate", scale=1)
|
| 206 |
azure_textbox = gr.Textbox(label="Translated Text", scale=2, interactive=False)
|
| 207 |
|
| 208 |
+
submit.click(render_translations, input_textbox, [gpt_4_textbox, dubpro_model_textbox, claude_textbox, azure_textbox])
|
| 209 |
|
| 210 |
|
| 211 |
if __name__=="__main__":
|