Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def generate_response(pdf, query):
|
|
52 |
# Gradio interface
|
53 |
iface = gr.Interface(
|
54 |
fn=generate_response,
|
55 |
-
inputs=[gr.
|
56 |
outputs="text",
|
57 |
title="PDF Question Answering with vi-gemma-2b-RAG",
|
58 |
description="Upload a PDF and ask a question based on its content. The model will generate a response."
|
|
|
52 |
# Gradio interface
|
53 |
iface = gr.Interface(
|
54 |
fn=generate_response,
|
55 |
+
inputs=[gr.File(label="Upload PDF"), gr.Textbox(label="Ask a question")],
|
56 |
outputs="text",
|
57 |
title="PDF Question Answering with vi-gemma-2b-RAG",
|
58 |
description="Upload a PDF and ask a question based on its content. The model will generate a response."
|