Unavailable1 commited on
Commit
3f48ec3
1 Parent(s): d587d14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -38,8 +38,13 @@ def speed_reading_interface(text):
38
  words_read, time_taken, wpm = perform_speed_reading(text)
39
  return f"Words Read: {words_read}, Time Taken (seconds): {time_taken}, Reading Speed (WPM): {wpm}"
40
 
 
 
 
41
  gr.Interface()
42
  fn=speed_reading_interface,
43
- gr.Textbox(lines=10, placeholder="Enter text here"),
44
- outputs="text"
45
- launch()
 
 
 
38
  words_read, time_taken, wpm = perform_speed_reading(text)
39
  return f"Words Read: {words_read}, Time Taken (seconds): {time_taken}, Reading Speed (WPM): {wpm}"
40
 
41
+ inputs = gr.inputs.Textbox(placeholder="Enter text here")
42
+ output = gr.outputs.Textbox(label="Results")
43
+
44
  gr.Interface()
45
  fn=speed_reading_interface,
46
+ inputs=inputs,
47
+ outputs=output,
48
+ title="Speed Reading Test",
49
+ description="Enter the text you want to speed read, and see how many words you can read per minute.",
50
+ .launch()