runaksh commited on
Commit
2ab1e7d
1 Parent(s): 4f84980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,11 +43,11 @@ description = "Medical Question and Answer"
43
  # Gradio elements
44
 
45
  # Input from user
46
- in_prompt = gradio.inputs.Textbox(lines=2, label='Enter the question')
47
- in_max_length = gradio.inputs.Number(label='Enter the max length')
48
 
49
  # Output response
50
- out_response = gradio.outputs.Textbox(label='Answer')
51
 
52
  # Gradio interface to generate UI link
53
  iface = gradio.Interface(fn=generate_query_response,
 
43
  # Gradio elements
44
 
45
  # Input from user
46
+ in_prompt = gradio.components.Textbox(lines=2, label='Enter the question')
47
+ in_max_length = gradio.components.Number(label='Enter the max length')
48
 
49
  # Output response
50
+ out_response = gradio.components.Textbox(label='Answer')
51
 
52
  # Gradio interface to generate UI link
53
  iface = gradio.Interface(fn=generate_query_response,