GunjanSingh29 commited on
Commit
03e6714
·
1 Parent(s): 8bb63cf

Fix API endpoints

Browse files
Files changed (1) hide show
  1. app.py +1 -18
app.py CHANGED
@@ -162,24 +162,7 @@ except ImportError as e:
162
  fn=simple_predict,
163
  inputs="text",
164
  outputs=["text", "text", "text"],
165
- title="Sentiment Analysa"""
166
- Entry point for Hugging Face Spaces
167
- This file is required by Hugging Face Spaces and should be named app.py
168
- """
169
-
170
- import os
171
- import sys
172
-
173
- # Add the current directory to Python path
174
- sys.path.append(os.path.dirname(os.path.abspath(__file__)))
175
-
176
- # Import and run the main application
177
- from app.main import app
178
-
179
- if __name__ == "__main__":
180
- import uvicorn
181
- uvicorn.run(app, host="0.0.0.0", port=7860)
182
- is (Fallback)",
183
  description="Simple sentiment analysis - enter text to analyze"
184
  )
185
 
 
162
  fn=simple_predict,
163
  inputs="text",
164
  outputs=["text", "text", "text"],
165
+ title="Sentiment Analysis (Fallback)",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  description="Simple sentiment analysis - enter text to analyze"
167
  )
168