Spaces:
Build error
Build error
Commit
·
8910ed8
1
Parent(s):
37d7644
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,10 +187,10 @@ with gr.Blocks() as iface:
|
|
| 187 |
btn = gr.Button(value='Submit')
|
| 188 |
btn.style(full_width=True)
|
| 189 |
|
| 190 |
-
|
| 191 |
-
|
| 192 |
|
| 193 |
btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
| 194 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 195 |
-
iface.launch()
|
| 196 |
-
|
|
|
|
| 187 |
btn = gr.Button(value='Submit')
|
| 188 |
btn.style(full_width=True)
|
| 189 |
|
| 190 |
+
with gr.Group():
|
| 191 |
+
answer = gr.Textbox(label='The answer to your question is :', lines=5, placeholder='Type your answer here...')
|
| 192 |
|
| 193 |
btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
|
| 194 |
#openai.api_key = os.getenv('Your_Key_Here')
|
| 195 |
+
#iface.launch()
|
| 196 |
+
iface.launch(share=True)
|