Moiz commited on
Commit
e336d68
·
1 Parent(s): c6a3e36

Added application form slider

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -11,10 +11,10 @@ def rate_movie(movie_name, rating):
11
  with gr.Blocks() as app:
12
  gr.Markdown("# Movie Rating App")
13
  movie_name = gr.Textbox(label="Movie Name", placeholder="Enter the movie name...")
14
- rating = gr.Radio(
15
- choices=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "N/A"],
16
- label="Rating",
17
- value="N/A"
18
  )
19
  submit = gr.Button("Submit Rating")
20
  output = gr.Textbox(label="Your Feedback")
 
11
  with gr.Blocks() as app:
12
  gr.Markdown("# Movie Rating App")
13
  movie_name = gr.Textbox(label="Movie Name", placeholder="Enter the movie name...")
14
+ rating = gr.Slider(
15
+ minumum=0,
16
+ maximum=10,
17
+ step = 0.25
18
  )
19
  submit = gr.Button("Submit Rating")
20
  output = gr.Textbox(label="Your Feedback")