Spaces:
Runtime error
Runtime error
bhaskartripathi
commited on
Commit
•
864289d
1
Parent(s):
bea0ce3
Update app.py
Browse files
app.py
CHANGED
@@ -279,8 +279,8 @@ with gr.Blocks() as demo:
|
|
279 |
label="PRE-DEFINED QUESTIONS: Click on a question to auto-fill the input box, then press Enter!",
|
280 |
)
|
281 |
model = gr.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k-0613', 'text-davinci-003','gpt-4','gpt-4-32k'], label='Select Model', default='gpt-3.5-turbo')
|
282 |
-
|
283 |
-
|
284 |
|
285 |
btn.style(full_width=True)
|
286 |
|
@@ -291,7 +291,7 @@ with gr.Blocks() as demo:
|
|
291 |
btn.click(
|
292 |
question_answer,
|
293 |
inputs=[chatbot, url, file, question, openAI_key, model],
|
294 |
-
outputs=[chatbot],
|
295 |
)
|
296 |
|
297 |
#openai.api_key = os.getenv('Your_Key_Here')
|
|
|
279 |
label="PRE-DEFINED QUESTIONS: Click on a question to auto-fill the input box, then press Enter!",
|
280 |
)
|
281 |
model = gr.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k-0613', 'text-davinci-003','gpt-4','gpt-4-32k'], label='Select Model', default='gpt-3.5-turbo')
|
282 |
+
btn = gr.Button(value='Submit')
|
283 |
+
|
284 |
|
285 |
btn.style(full_width=True)
|
286 |
|
|
|
291 |
btn.click(
|
292 |
question_answer,
|
293 |
inputs=[chatbot, url, file, question, openAI_key, model],
|
294 |
+
outputs=[chatbot],
|
295 |
)
|
296 |
|
297 |
#openai.api_key = os.getenv('Your_Key_Here')
|