Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -316,8 +316,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
316 |
|
317 |
with gr.Column(scale=3):
|
318 |
chatbot = gr.Chatbot(
|
319 |
-
|
320 |
-
|
321 |
height=600,
|
322 |
show_copy_button=True
|
323 |
)
|
@@ -387,20 +387,10 @@ if __name__ == "__main__":
|
|
387 |
print("Example: export HUGGINGFACE_TOKEN=your_token_here")
|
388 |
exit(1)
|
389 |
|
390 |
-
#
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
demo.launch(
|
398 |
-
share=False, # Set to True if you want to create a public link
|
399 |
-
server_name="0.0.0.0", # Listen on all network interfaces
|
400 |
-
server_port=7860, # Default Gradio port
|
401 |
-
show_error=True,
|
402 |
-
enable_queue=True
|
403 |
-
)
|
404 |
-
except Exception as e:
|
405 |
-
logger.error(f"Error launching Gradio interface: {str(e)}")
|
406 |
-
raise
|
|
|
316 |
|
317 |
with gr.Column(scale=3):
|
318 |
chatbot = gr.Chatbot(
|
319 |
+
value=[],
|
320 |
+
label="Chat",
|
321 |
height=600,
|
322 |
show_copy_button=True
|
323 |
)
|
|
|
387 |
print("Example: export HUGGINGFACE_TOKEN=your_token_here")
|
388 |
exit(1)
|
389 |
|
390 |
+
# Launch the application
|
391 |
+
demo.launch(
|
392 |
+
server_name="0.0.0.0",
|
393 |
+
server_port=7860,
|
394 |
+
share=False,
|
395 |
+
show_error=True
|
396 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|