marinap commited on
Commit
dae33bc
1 Parent(s): d79a08c

markdown cleanup

Browse files
Files changed (1) hide show
  1. app.py +20 -9
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.Markdown('| Code | Lang | # | Code | Lang |\n'
77
- '| :------- | :------- | :--- | :------- | :------------------- |\n'
78
- '| eng_Latn | English | # | fra_Latn | French |\n'
79
- '| deu_Latn | German | # | ita_Latn | Italian |\n'
80
- '| ita_Latn | Spanish | # | jpn_Jpan | Japanese |\n'
81
- '| tur_Latn | Turkish | # | zho_Hans | Chinese (Simplified) |\n'
82
- '| kor_Hang | Korean | # | pol_Latn | Polish |\n'
83
- '| rus_Cyrl | Russian | # | . | . |\n')
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