Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,12 @@ examples = [
|
|
18 |
["What is your name?", "تُہند ناو کِیہ چھ؟"],
|
19 |
["I am feeling great today!", "آج سچِہ زبردست ہوں!"],
|
20 |
["See you later!", "بَعِد چُھٹ چھُ؟"]
|
|
|
21 |
]
|
|
|
|
|
|
|
|
|
22 |
|
23 |
# Set up the Gradio interface
|
24 |
with gr.Blocks() as demo:
|
@@ -50,5 +55,8 @@ with gr.Blocks() as demo:
|
|
50 |
# Add examples to the interface for easy testing
|
51 |
gr.Examples(examples=examples, inputs=user_input, outputs=transliterated_output)
|
52 |
|
|
|
|
|
|
|
53 |
# Launch the Gradio interface
|
54 |
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 image file
|
24 |
+
image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/cPHY7iEpErxAEakPBWvKR.png" # Replace with the actual path to your image
|
25 |
+
image_path = "https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/TZNNe4XJcO4qzoFfug18v.png" # Replace with the actual path to your image
|
26 |
+
|
27 |
|
28 |
# Set up the Gradio interface
|
29 |
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 image at the bottom of the page
|
59 |
+
gr.Image(image_path, label="Example Image", elem_id="bottom-image")
|
60 |
+
|
61 |
# Launch the Gradio interface
|
62 |
demo.launch(share=True, inbrowser=True)
|