PatrickRedStar commited on
Commit
4135d5d
·
1 Parent(s): e4e2355

Fix: properly configure app for Hugging Face Spaces - don't call launch() automatically

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -209,10 +209,9 @@ def create_interface():
209
  return app
210
 
211
 
212
- # Создание и запуск приложения
 
 
 
213
  if __name__ == "__main__":
214
- app = create_interface()
215
- app.launch(server_name="0.0.0.0", server_port=7860)
216
- else:
217
- # Для Hugging Face Spaces
218
- app = create_interface()
 
209
  return app
210
 
211
 
212
+ # Создание приложения
213
+ app = create_interface()
214
+
215
+ # Локальный запуск (для отладки)
216
  if __name__ == "__main__":
217
+ app.launch(server_name="0.0.0.0", server_port=7860, share=False)