Atulkumar001 commited on
Commit
bd6db19
·
verified ·
1 Parent(s): 5fa1df7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -21
app.py CHANGED
@@ -190,18 +190,8 @@ Retrieved Context:
190
  """
191
 
192
  history.append(
193
- {
194
- "role": "user",
195
- "content": message
196
- }
197
- )
198
-
199
- history.append(
200
- {
201
- "role": "assistant",
202
- "content": final_response
203
- }
204
- )
205
 
206
  return history, ""
207
 
@@ -393,10 +383,7 @@ footer {
393
  # UI
394
  # =====================================================
395
 
396
- with gr.Blocks(
397
- css=custom_css,
398
- theme=gr.themes.Soft()
399
- ) as demo:
400
 
401
  gr.HTML(
402
  """
@@ -411,10 +398,9 @@ Netflix × OpenAI Entertainment Intelligence Engine
411
  )
412
 
413
  chatbot = gr.Chatbot(
414
- type="messages",
415
- height=600,
416
- elem_classes="chat-window"
417
- )
418
 
419
  with gr.Row():
420
 
@@ -466,4 +452,7 @@ Netflix × OpenAI Entertainment Intelligence Engine
466
  ]
467
  )
468
 
469
- demo.launch()
 
 
 
 
190
  """
191
 
192
  history.append(
193
+ (message, final_response)
194
+ )
 
 
 
 
 
 
 
 
 
 
195
 
196
  return history, ""
197
 
 
383
  # UI
384
  # =====================================================
385
 
386
+ with gr.Blocks() as demo:
 
 
 
387
 
388
  gr.HTML(
389
  """
 
398
  )
399
 
400
  chatbot = gr.Chatbot(
401
+ height=600,
402
+ elem_classes="chat-window"
403
+ )
 
404
 
405
  with gr.Row():
406
 
 
452
  ]
453
  )
454
 
455
+ demo.launch(
456
+ css=custom_css,
457
+ theme=gr.themes.Soft()
458
+ )