simonraj commited on
Commit
40d4863
·
1 Parent(s): 16a981c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def predict(question_choice, feedback_level, audio):
28
  question_number = RadinMas.questions.index(question_choice) + 1 # New line
29
 
30
  # Generate the system message based on the question number
31
- system_message = RadinMas.generate_system_message(question_number) # Updated line
32
 
33
 
34
  # Reference to the picture description from RadinMas.py
@@ -73,6 +73,7 @@ iface = gr.Interface(
73
  fn=predict,
74
  inputs=[
75
  gr.Radio(RadinMas.questions, label="Choose a question", default=RadinMas.questions[0]), # Dropdown for question choice
 
76
  gr.inputs.Audio(source="microphone", type="filepath") # Audio input
77
  ],
78
  outputs=gr.inputs.Textbox(), # Using inputs.Textbox as an output to make it editable
 
28
  question_number = RadinMas.questions.index(question_choice) + 1 # New line
29
 
30
  # Generate the system message based on the question number
31
+ system_message = RadinMas.generate_system_message(question_number, feedback_level) # Updated line to include feedback_level
32
 
33
 
34
  # Reference to the picture description from RadinMas.py
 
73
  fn=predict,
74
  inputs=[
75
  gr.Radio(RadinMas.questions, label="Choose a question", default=RadinMas.questions[0]), # Dropdown for question choice
76
+ gr.Radio(["Brief Feedback", "Detailed Feedback", "Comprehensive Feedback"], label="Choose a feedback level", default="Brief Feedback"), # Ensure this line is present
77
  gr.inputs.Audio(source="microphone", type="filepath") # Audio input
78
  ],
79
  outputs=gr.inputs.Textbox(), # Using inputs.Textbox as an output to make it editable