Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
27 |
-
outputs=gr.
|
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 |
)
|