Spaces:
Runtime error
Runtime error
Commit
·
ca8acf6
1
Parent(s):
faa00e9
Update app.py
Browse files
app.py
CHANGED
|
@@ -173,6 +173,8 @@ with gr.Blocks() as demo:
|
|
| 173 |
with gr.Group():
|
| 174 |
answer = gr.Textbox(label='The answer to your question is :')
|
| 175 |
|
| 176 |
-
btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
|
|
|
|
|
|
| 177 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 178 |
demo.launch()
|
|
|
|
| 173 |
with gr.Group():
|
| 174 |
answer = gr.Textbox(label='The answer to your question is :')
|
| 175 |
|
| 176 |
+
#btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
| 177 |
+
btn.click(question_answer, inputs=[directory_path, question, openAI_key], outputs=[answer])
|
| 178 |
+
|
| 179 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 180 |
demo.launch()
|