Spaces:
Runtime error
Runtime error
markdown cleanup
Browse files
app.py
CHANGED
@@ -73,19 +73,30 @@ print('version', gr.__version__)
|
|
73 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
74 |
gr.Markdown('# Enter a prompt in one of the supported languages.')
|
75 |
with gr.Row():
|
76 |
-
gr.
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
|
85 |
with gr.Column():
|
86 |
-
prompt_box = gr.Textbox(label = 'Enter your prompt', lines = 3)
|
87 |
btn_search = gr.Button("Find images")
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
gallery = gr.Gallery().style(grid = [5], height="auto")
|
90 |
btn_search.click(find_topk, inputs = prompt_box, outputs = gallery)
|
91 |
|
|
|
73 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
74 |
gr.Markdown('# Enter a prompt in one of the supported languages.')
|
75 |
with gr.Row():
|
76 |
+
with gr.Column():
|
77 |
+
gr.Markdown(
|
78 |
+
'||||||\n'
|
79 |
+
'|:-------: |:---: |:-------: |:---: | :--- |\n'
|
80 |
+
'|__English__| # |__French__ | # |__Russian__|\n'
|
81 |
+
'|__German__ | # |__Italian__ | # |__Chinese (Simplified)__|\n'
|
82 |
+
'|__Spanish__| # |__Japanese__| # |__Korean__|\n'
|
83 |
+
'|__Turkish__| # |__Polish__ | # |.|\n')
|
84 |
|
85 |
with gr.Column():
|
86 |
+
prompt_box = gr.Textbox(label = 'Enter your prompt', lines = 3, container = True)
|
87 |
btn_search = gr.Button("Find images")
|
88 |
|
89 |
+
with gr.Row():
|
90 |
+
gr.Examples(['a girl wandering alone in the forest',
|
91 |
+
'морозное утро в городе',
|
92 |
+
'카메라를 바라보는 강아지 새끼',
|
93 |
+
'ein Schloss, das zwischen modernen Gebäuden hervorlugt',
|
94 |
+
'un couple sirotant un café au bord de la rivière',
|
95 |
+
'una banda de música actuando en un gran espacio al aire libre',
|
96 |
+
'秋の静かな霧の庭園'
|
97 |
+
], inputs=[prompt_box])
|
98 |
+
|
99 |
+
|
100 |
gallery = gr.Gallery().style(grid = [5], height="auto")
|
101 |
btn_search.click(find_topk, inputs = prompt_box, outputs = gallery)
|
102 |
|