update port
Browse files152 unmodified lines15315415515615715815916016116216316416516616718 unmodified lines18618718818919019119219319412 unmodified lines20720820921021121221321421511 unmodified lines227228229230231232233234235236237238152 unmodified lineswith gr.Blocks(scale=4) as demo:gr.HTML("""<h1 align="center">PandaGPT</h1>""")with gr.Row(scale=4):with gr.Column(scale=1):image_path = gr.Image(type="filepath", label="Image", value=None)# with gr.Column(scale=1):# audio_path = gr.Audio(type="filepath", label="Audio", value=None)# with gr.Column(scale=1):# video_path = gr.Video(type='file', label="Video")# with gr.Column(scale=1):# thermal_path = gr.Image(type="filepath", label="Thermal Image", value=None)chatbot = gr.Chatbot().style(height=300)with gr.Row():18 unmodified linespredict, [user_input,image_path,# audio_path,# video_path,# thermal_path,chatbot,max_length,top_p,12 unmodified linesre_predict, [user_input,image_path,# audio_path,# video_path,# thermal_path,chatbot,max_length,top_p,11 unmodified linessubmitBtn.click(reset_user_input, [], [user_input])emptyBtn.click(reset_state, outputs=[image_path,# audio_path,# video_path,# thermal_path,chatbot,history,modality_cache], show_progress=True)demo.queue().launch(share=False, inbrowser=True, server_name='0.0.0.0', server_port=10050)152 unmodified lines15315415515615715815916016118 unmodified lines18018118218318418512 unmodified lines19819920020120220311 unmodified lines215216217218219220221222223152 unmodified lineswith gr.Blocks(scale=4) as demo:gr.HTML("""<h1 align="center">PandaGPT</h1>""")with gr.Row(scale=1):with gr.Column(scale=1):image_path = gr.Image(type="filepath", label="Image", value=None)chatbot = gr.Chatbot().style(height=300)with gr.Row():18 unmodified linespredict, [user_input,image_path,chatbot,max_length,top_p,12 unmodified linesre_predict, [user_input,image_path,chatbot,max_length,top_p,11 unmodified linessubmitBtn.click(reset_user_input, [], [user_input])emptyBtn.click(reset_state, outputs=[image_path,chatbot,history,modality_cache], show_progress=True)demo.queue().launch(enable_queue=True)
app.py+2-17