nileshhanotia commited on
Commit
88be2a4
1 Parent(s): 694be2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -60,12 +60,11 @@ def create_interface():
60
  ]
61
  )
62
 
63
- # This will enable an API endpoint for your Space
64
- iface.launch(share=True, api_name="/predict") # Ensure share=True for public access if needed
65
 
66
  if __name__ == "__main__":
67
- iface = create_interface()
68
- iface.launch()
69
 
70
  # Test the API endpoint using Gradio Client
71
  client = Client("nileshhanotia/PePe")
 
60
  ]
61
  )
62
 
63
+ # Launch interface with public sharing enabled
64
+ iface.launch(share=True)
65
 
66
  if __name__ == "__main__":
67
+ create_interface()
 
68
 
69
  # Test the API endpoint using Gradio Client
70
  client = Client("nileshhanotia/PePe")