shukdevdatta123 commited on
Commit
1ef6f69
·
verified ·
1 Parent(s): c57598a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -315,7 +315,7 @@ def create_interface():
315
 
316
  def handle_export(history):
317
  status, filepath = chatbot.export_conversation(history or [])
318
- return status, filepath
319
 
320
  def handle_regenerate(history):
321
  if not history:
@@ -427,5 +427,6 @@ def create_interface():
427
  if __name__ == "__main__":
428
  demo = create_interface()
429
  demo.launch(
430
- share=True
 
431
  )
 
315
 
316
  def handle_export(history):
317
  status, filepath = chatbot.export_conversation(history or [])
318
+ return status, gr.File(filepath, visible=False, label=None) if filepath else None
319
 
320
  def handle_regenerate(history):
321
  if not history:
 
427
  if __name__ == "__main__":
428
  demo = create_interface()
429
  demo.launch(
430
+ server_name="0.0.0.0",
431
+ server_port=7860
432
  )