Spaces:
Runtime error
Runtime error
Commit
·
4771719
1
Parent(s):
31875cb
updated the textbox
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def qa_system(pdf_file, openai_key, prompt, chain_type, k):
|
|
37 |
|
38 |
# define the Gradio interface
|
39 |
input_file = gr.inputs.File(label="PDF File")
|
40 |
-
openai_key = gr.inputs.Textbox(label="OpenAI API Key",
|
41 |
prompt = gr.inputs.Textbox(label="Question Prompt")
|
42 |
chain_type = gr.inputs.Radio(['stuff', 'map_reduce', "refine", "map_rerank"], label="Chain Type")
|
43 |
k = gr.inputs.Slider(minimum=1, maximum=5, default=1, label="Number of Relevant Chunks")
|
|
|
37 |
|
38 |
# define the Gradio interface
|
39 |
input_file = gr.inputs.File(label="PDF File")
|
40 |
+
openai_key = gr.inputs.Textbox(label="OpenAI API Key", type="password")
|
41 |
prompt = gr.inputs.Textbox(label="Question Prompt")
|
42 |
chain_type = gr.inputs.Radio(['stuff', 'map_reduce', "refine", "map_rerank"], label="Chain Type")
|
43 |
k = gr.inputs.Slider(minimum=1, maximum=5, default=1, label="Number of Relevant Chunks")
|