Update app.py
Browse files
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 |
-
|
|
|
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 |
)
|