jays009 commited on
Commit
b4a7338
·
verified ·
1 Parent(s): 5326d5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -62,8 +62,8 @@ iface = gr.Interface(
62
  description="Upload an image of wheat to detect anomalies like disease or pest infestation."
63
  )
64
 
65
- # Launch the Gradio interface
66
- iface.launch(share=True)
67
 
68
  # Create a Flask app
69
  app = Flask(__name__)
@@ -85,6 +85,6 @@ def api_predict():
85
  except Exception as e:
86
  return jsonify({"error": str(e)}), 400
87
 
88
- # Run the Flask app
89
  if __name__ == '__main__':
90
- app.run(host='0.0.0.0', port=8000)
 
62
  description="Upload an image of wheat to detect anomalies like disease or pest infestation."
63
  )
64
 
65
+ # Launch the Gradio interface on a different port
66
+ iface.launch(share=True, server_port=7861)
67
 
68
  # Create a Flask app
69
  app = Flask(__name__)
 
85
  except Exception as e:
86
  return jsonify({"error": str(e)}), 400
87
 
88
+ # Run the Flask app on a different port
89
  if __name__ == '__main__':
90
+ app.run(host='0.0.0.0', port=8001)