24Sureshkumar commited on
Commit
abf7a84
·
verified ·
1 Parent(s): 81f4bda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -57,7 +57,19 @@ def process_input(tamil_text):
57
  return english_text, creative_text, image
58
 
59
  # Create Gradio Interface
60
- interface = gr.Interface(
 
 
 
 
 
 
 
 
 
 
 
 
61
  fn=process_input,
62
  inputs=gr.Textbox(label="Enter Tamil Text"),
63
  outputs=[
@@ -68,6 +80,5 @@ interface = gr.Interface(
68
  title="Tamil to English Translator & Image Generator",
69
  description="Enter Tamil text, and this app will translate it, generate a creative description, and create an image based on the text."
70
  )
71
-
72
  # Launch the Gradio app
73
  interface.launch()
 
57
  return english_text, creative_text, image
58
 
59
  # Create Gradio Interface
60
+
61
+ # interface = gr.Interface(
62
+ # fn=process_input,
63
+ # inputs=gr.Textbox(label="Enter Tamil Text"),
64
+ # outputs=[
65
+ # gr.Textbox(label="Translated English Text"),
66
+ # gr.Textbox(label="Creative Text"),
67
+ # gr.Image(label="Generated Image")
68
+ # ],
69
+ # title="Tamil to English Translator & Image Generator",
70
+ # description="Enter Tamil text, and this app will translate it, generate a creative description, and create an image based on the text."
71
+ # )
72
+ gr.Interface(
73
  fn=process_input,
74
  inputs=gr.Textbox(label="Enter Tamil Text"),
75
  outputs=[
 
80
  title="Tamil to English Translator & Image Generator",
81
  description="Enter Tamil text, and this app will translate it, generate a creative description, and create an image based on the text."
82
  )
 
83
  # Launch the Gradio app
84
  interface.launch()