tiennguyenbnbk commited on
Commit
8e33167
·
verified ·
1 Parent(s): 8d57ac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -22,8 +22,7 @@ def generate_comment(
22
  facialEyeContact,
23
  voice,
24
  pronunciation,
25
- fluency,
26
- slideDesign,
27
  ):
28
  payload = {
29
  "title": title,
@@ -33,8 +32,7 @@ def generate_comment(
33
  "facialEyeContact": facialEyeContact,
34
  "voice": voice,
35
  "pronunciation": pronunciation,
36
- "fluency": fluency,
37
- "slideDesign": slideDesign,
38
  }
39
  headers = {
40
  "accept": "application/json",
@@ -108,7 +106,7 @@ with gr.Blocks(gr.themes.Origin()) as demo:
108
  output = gr.Textbox(label="Teacher’s Comment", lines=5)
109
  gen_btn.click(
110
  generate_comment,
111
- [title, style, content, bodyLanguage, facialEyeContact, voice, pronunciation, fluency, slideDesign],
112
  output,
113
  )
114
 
 
22
  facialEyeContact,
23
  voice,
24
  pronunciation,
25
+ fluency
 
26
  ):
27
  payload = {
28
  "title": title,
 
32
  "facialEyeContact": facialEyeContact,
33
  "voice": voice,
34
  "pronunciation": pronunciation,
35
+ "fluency": fluency
 
36
  }
37
  headers = {
38
  "accept": "application/json",
 
106
  output = gr.Textbox(label="Teacher’s Comment", lines=5)
107
  gen_btn.click(
108
  generate_comment,
109
+ [title, style, content, bodyLanguage, facialEyeContact, voice, pronunciation, fluency],
110
  output,
111
  )
112