Spaces:
Sleeping
Sleeping
parvezalmuqtadir
commited on
Commit
•
8592a70
1
Parent(s):
c552cc7
Update app.py
Browse files
app.py
CHANGED
@@ -258,11 +258,22 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
|
|
258 |
file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
|
259 |
question = gr.Textbox(label='Enter your question here')
|
260 |
gr.Examples(
|
261 |
-
|
|
|
|
|
|
|
|
|
262 |
)
|
263 |
model = gr.Radio([
|
264 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
], label='Select Model', default='gpt-3.5-turbo')
|
|
|
266 |
btn = gr.Button(value='Submit')
|
267 |
btn.style(full_width=True)
|
268 |
with gr.Group():
|
|
|
258 |
file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
|
259 |
question = gr.Textbox(label='Enter your question here')
|
260 |
gr.Examples(
|
261 |
+
examples = gr.Examples(
|
262 |
+
examples=questions,
|
263 |
+
inputs=question,
|
264 |
+
label="PRE-DEFINED QUESTIONS: Click on a question to auto-fill the input box, then press Enter!"
|
265 |
+
)
|
266 |
)
|
267 |
model = gr.Radio([
|
268 |
+
'gpt-3.5-turbo',
|
269 |
+
'gpt-3.5-turbo-16k',
|
270 |
+
'gpt-3.5-turbo-0613',
|
271 |
+
'gpt-3.5-turbo-16k-0613',
|
272 |
+
'text-davinci-003',
|
273 |
+
'gpt-4',
|
274 |
+
'gpt-4-32k'
|
275 |
], label='Select Model', default='gpt-3.5-turbo')
|
276 |
+
|
277 |
btn = gr.Button(value='Submit')
|
278 |
btn.style(full_width=True)
|
279 |
with gr.Group():
|