KwabsHug commited on
Commit
454d167
1 Parent(s): 90dd024

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -241,6 +241,10 @@ def group_words(inlist):
241
  yield " ".join(word_groups[current_group_index])
242
  time.sleep(10)
243
 
 
 
 
 
244
  with gr.Blocks() as lliface:
245
  with gr.Tab("Welcome "):
246
  gr.HTML("""<h1> Spaces Test - Still Undercontruction </h1> <p> You only learn when you convert things you dont know to known --> Normally Repetition is the only reliable method for everybody </p>
@@ -260,9 +264,7 @@ with gr.Blocks() as lliface:
260
  with gr.Tab("Timing Practice - Repitition"):
261
  gr.HTML("<p>Run from it, Dread it, Repitition is inevitable - Thanos</p> <p>Next Milestone is Turning this interface handsfree</p>")
262
  with gr.Tab("Gradio Version"):
263
- input_text = gr.inputs.Textbox(lines=2, label="Enter a list of words")
264
- output_text = gr.outputs.Textbox(label="Grouped words")
265
- gr.Interface(fn=group_words, inputs=input_text, outputs=output_text, block_id="TimerGradioVer", title="Word Grouping and Rotation", description="Group a list of words into sets of 10 and rotate them every 60 seconds.").queue()
266
  with gr.Tab("HTML Version"):
267
  gr.HTML("""<iframe height="1200" style="width: 100%;" scrolling="no" title="Memorisation Aid" src="https://codepen.io/kwabs22/embed/preview/GRXKQgj?default-tab=result&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
268
  See the Pen <a href="https://codepen.io/kwabs22/pen/GRXKQgj">
 
241
  yield " ".join(word_groups[current_group_index])
242
  time.sleep(10)
243
 
244
+
245
+ groupinput_text = gr.inputs.Textbox(lines=2, label="Enter a list of words")
246
+ groupoutput_text = gr.outputs.Textbox(label="Grouped words")
247
+
248
  with gr.Blocks() as lliface:
249
  with gr.Tab("Welcome "):
250
  gr.HTML("""<h1> Spaces Test - Still Undercontruction </h1> <p> You only learn when you convert things you dont know to known --> Normally Repetition is the only reliable method for everybody </p>
 
264
  with gr.Tab("Timing Practice - Repitition"):
265
  gr.HTML("<p>Run from it, Dread it, Repitition is inevitable - Thanos</p> <p>Next Milestone is Turning this interface handsfree</p>")
266
  with gr.Tab("Gradio Version"):
267
+ gr.Interface(fn=group_words, inputs=groupinput_text, outputs=groupoutput_text, block_id="TimerGradioVer", title="Word Grouping and Rotation", description="Group a list of words into sets of 10 and rotate them every 60 seconds.").queue()
 
 
268
  with gr.Tab("HTML Version"):
269
  gr.HTML("""<iframe height="1200" style="width: 100%;" scrolling="no" title="Memorisation Aid" src="https://codepen.io/kwabs22/embed/preview/GRXKQgj?default-tab=result&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
270
  See the Pen <a href="https://codepen.io/kwabs22/pen/GRXKQgj">