Spaces:
Running
Running
bhaskartripathi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
|
|
248 |
# API Key and File Inputs
|
249 |
with gr.Accordion("API Key and PDF"):
|
250 |
openAI_key = gr.Textbox(label='Enter your OpenAI API key here', type='password')
|
251 |
-
url = gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.03762.pdf)')
|
252 |
gr.Markdown("<center><h4>OR<h4></center>")
|
253 |
file = gr.File(label='Upload your PDF/Research Paper/Book here', file_types=['.pdf'])
|
254 |
|
@@ -257,11 +257,10 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
|
|
257 |
choices=[
|
258 |
'gpt-4o',
|
259 |
'gpt-4o-mini',
|
260 |
-
'
|
261 |
-
'o1-mini'
|
262 |
],
|
263 |
label='Select Model',
|
264 |
-
value='gpt-4o'
|
265 |
)
|
266 |
|
267 |
# Chat Interface
|
|
|
248 |
# API Key and File Inputs
|
249 |
with gr.Accordion("API Key and PDF"):
|
250 |
openAI_key = gr.Textbox(label='Enter your OpenAI API key here', type='password')
|
251 |
+
url = gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.03762.pdf ; https://link.springer.com/content/pdf/10.1007/s10614-022-10325-8.pdf)')
|
252 |
gr.Markdown("<center><h4>OR<h4></center>")
|
253 |
file = gr.File(label='Upload your PDF/Research Paper/Book here', file_types=['.pdf'])
|
254 |
|
|
|
257 |
choices=[
|
258 |
'gpt-4o',
|
259 |
'gpt-4o-mini',
|
260 |
+
'gpt-4',
|
|
|
261 |
],
|
262 |
label='Select Model',
|
263 |
+
value='gpt-4o-mini'
|
264 |
)
|
265 |
|
266 |
# Chat Interface
|