atnikos commited on
Commit
4eca5c1
·
1 Parent(s): fc15175
Files changed (2) hide show
  1. app.py +4 -5
  2. website.py +12 -3
app.py CHANGED
@@ -234,15 +234,14 @@ def create_gradio_interface():
234
 
235
  # Gradio UI
236
  with gr.Blocks(css=CUSTOM_CSS) as demo:
237
- gr.Markdown(WEBSITE)
238
  random_key_state = gr.State()
239
 
240
  with gr.Row():
241
  with gr.Column(scale=5):
242
- gr.Markdown(WEB_source)
243
- random_button = gr.Button("Random")
244
-
245
  with gr.Row():
 
246
  clear_button_retrieval = gr.Button("Clear", scale=0)
247
 
248
  suggested_edit_text = gr.Textbox(
@@ -264,7 +263,7 @@ def create_gradio_interface():
264
  )
265
 
266
  with gr.Column(scale=5):
267
- gr.Markdown(WEB_target)
268
  with gr.Row():
269
  clear_button_edit = gr.Button("Clear", scale=0)
270
  edit_button = gr.Button("Edit", scale=0)
 
234
 
235
  # Gradio UI
236
  with gr.Blocks(css=CUSTOM_CSS) as demo:
237
+ gr.HTML(WEBSITE)
238
  random_key_state = gr.State()
239
 
240
  with gr.Row():
241
  with gr.Column(scale=5):
242
+ gr.HTML(WEB_source)
 
 
243
  with gr.Row():
244
+ random_button = gr.Button("Random", scale=0)
245
  clear_button_retrieval = gr.Button("Clear", scale=0)
246
 
247
  suggested_edit_text = gr.Textbox(
 
263
  )
264
 
265
  with gr.Column(scale=5):
266
+ gr.HTML(WEB_target)
267
  with gr.Row():
268
  clear_button_edit = gr.Button("Clear", scale=0)
269
  edit_button = gr.Button("Edit", scale=0)
website.py CHANGED
@@ -33,9 +33,13 @@ CREDITS=("""<div class="embed_hidden" style="text-align: center;">
33
  WEB_source = ("""<div class="embed_hidden" style="text-align: center;">
34
  <h1>Pick a motion to edit!</h1>
35
  <h3>
36
- Here you should pick a source motion
37
- <hr class="double">
38
  </h3>
 
 
 
 
 
39
  </div>
40
  """)
41
 
@@ -43,7 +47,12 @@ WEB_target = ("""<div class="embed_hidden" style="text-align: center;">
43
  <h1>Now type the text to edit that motion!</h1>
44
  <h3>
45
  Here you should get the generated motion!
46
- <hr class="double">
47
  </h3>
 
 
 
 
 
 
48
  </div>
49
  """)
 
33
  WEB_source = ("""<div class="embed_hidden" style="text-align: center;">
34
  <h1>Pick a motion to edit!</h1>
35
  <h3>
36
+ Here you should pick a source motion. You can select it from different sets.
 
37
  </h3>
38
+ <h3>
39
+ A text suggestion will be given for a potential edit.
40
+ You can click the Random button multiple times to pick different motions.
41
+ </h3>
42
+ <hr class="double">
43
  </div>
44
  """)
45
 
 
47
  <h1>Now type the text to edit that motion!</h1>
48
  <h3>
49
  Here you should get the generated motion!
 
50
  </h3>
51
+ <h3>
52
+ You can use the suggested text or add you own.
53
+ Then, you should click Edit to check your result.
54
+ You can type a new text and click Edit again to edit the current motion.
55
+ </h3>
56
+ <hr class="double">
57
  </div>
58
  """)