Spaces:
Runtime error
Runtime error
Commit ·
0afd692
1
Parent(s): 9c667ec
Updated the open api key input for password
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.
|
| 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.Password(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")
|