izeeek commited on
Commit
17c4114
·
verified ·
1 Parent(s): a579024

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ def generate_response(user_question):
23
  # Create a Gradio interface
24
  interface = gr.Interface(
25
  fn=generate_response, # Function to call
26
- inputs=gr.inputs.Textbox(label="Ask a question about Pride and Prejudice:"), # User input
27
- outputs=gr.outputs.Textbox(label="Response from the novel:"), # Output display
28
  title="Pride and Prejudice Q&A", # Title of the app
29
  description="Ask any question about 'Pride and Prejudice' and get a detailed response!"
30
  )
 
23
  # Create a Gradio interface
24
  interface = gr.Interface(
25
  fn=generate_response, # Function to call
26
+ inputs=gr.Textbox(label="Ask a question about Pride and Prejudice:"), # User input
27
+ outputs=gr.Textbox(label="Response from the novel:"), # Output display
28
  title="Pride and Prejudice Q&A", # Title of the app
29
  description="Ask any question about 'Pride and Prejudice' and get a detailed response!"
30
  )