deepsync commited on
Commit
291c686
1 Parent(s): 8309dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -181,8 +181,8 @@ def render_translations(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:
@@ -198,14 +198,14 @@ with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochr
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)
204
  with gr.Row():
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__":
 
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=azure)
186
 
187
 
188
  with gr.Blocks(title="English to Hindi Translation Tools", theme="gradio/monochrome") as demo:
 
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)
204
  with gr.Row():
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, azure_textbox])
209
 
210
 
211
  if __name__=="__main__":