Spaces:
Sleeping
Sleeping
Update app.py
Browse files27 unmodified lines282930313233343527 unmodified linesreturn result[0]['generated_text']# 4. Launch with explicit Port/Hostdemo = gr.Interface(fn=diagnose, inputs=gr.Image(type="pil"), outputs="text")if __name__ == "__main__":# 0.0.0.0 and 7860 are REQUIRED for Hugging Face Spacesdemo.launch(server_name="0.0.0.0", server_port=7860)27 unmodified lines2829303132333435363738394041424327 unmodified linesreturn result[0]['generated_text']# 4. Launch with explicit Port/Hostdemo = gr.Interface(fn=diagnose, inp`uts=gr.Image(type="pil"), outputs="text")if __name__ == "__main__":# 0.0.0.0 and 7860 are REQUIRED for Hugging Face Spaces# Change your launch line from:# demo.launch()# To this:demo.launch(server_name="0.0.0.0",server_port=7860,ssr_mode=False)
app.py+10-2