Omarrran commited on
Commit
0bfbafb
·
verified ·
1 Parent(s): 842eb49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -18,12 +18,11 @@ examples = [
18
  ["What is your name?", "تُہند ناو کِیہ چھ؟"],
19
  ["I am feeling great today!", "آج سچِہ زبردست ہوں!"],
20
  ["See you later!", "بَعِد چُھٹ چھُ؟"]
21
-
22
  ]
23
 
24
- # Path to your before and after image files
25
- before_image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/cPHY7iEpErxAEakPBWvKR.png" # Replace with actual path to your "before" image
26
- after_image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/TZNNe4XJcO4qzoFfug18v.png" # Replace with actual path to your "after" image
27
 
28
  # Set up the Gradio interface
29
  with gr.Blocks() as demo:
@@ -37,7 +36,6 @@ with gr.Blocks() as demo:
37
  """)
38
 
39
  # Display the examples
40
-
41
  gr.Markdown("### Enter your own sentence:")
42
 
43
  # Create input field for user sentence
@@ -55,11 +53,10 @@ with gr.Blocks() as demo:
55
  # Add examples to the interface for easy testing
56
  gr.Examples(examples=examples, inputs=user_input, outputs=transliterated_output)
57
 
58
- # Display the "Before" and "After" images
59
  with gr.Row():
60
  gr.Image(before_image_path, label="Before", elem_id="before-image", show_label=True)
61
  gr.Image(after_image_path, label="After", elem_id="after-image", show_label=True)
62
 
63
-
64
  # Launch the Gradio interface
65
  demo.launch(share=True, inbrowser=True)
 
18
  ["What is your name?", "تُہند ناو کِیہ چھ؟"],
19
  ["I am feeling great today!", "آج سچِہ زبردست ہوں!"],
20
  ["See you later!", "بَعِد چُھٹ چھُ؟"]
 
21
  ]
22
 
23
+ # Path to your before and after image files
24
+ before_image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/cPHY7iEpErxAEakPBWvKR.png" # Replace with actual path to your "before" image
25
+ after_image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/TZNNe4XJcO4qzoFfug18v.png" # Replace with actual path to your "after" image
26
 
27
  # Set up the Gradio interface
28
  with gr.Blocks() as demo:
 
36
  """)
37
 
38
  # Display the examples
 
39
  gr.Markdown("### Enter your own sentence:")
40
 
41
  # Create input field for user sentence
 
53
  # Add examples to the interface for easy testing
54
  gr.Examples(examples=examples, inputs=user_input, outputs=transliterated_output)
55
 
56
+ # Display the "Before" and "After" images
57
  with gr.Row():
58
  gr.Image(before_image_path, label="Before", elem_id="before-image", show_label=True)
59
  gr.Image(after_image_path, label="After", elem_id="after-image", show_label=True)
60
 
 
61
  # Launch the Gradio interface
62
  demo.launch(share=True, inbrowser=True)