sohamchitimali commited on
Commit
dd4c2d6
·
1 Parent(s): 0d8b86e

Added accelerate

Browse files
Files changed (2) hide show
  1. app.py +1 -5
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1110,13 +1110,9 @@ if __name__ == "__main__":
1110
  print("Starting Enhanced Document QA System...")
1111
  print(f"Gradio version: {gr.__version__}")
1112
 
1113
- # Get port from environment or use default
1114
- port = int(os.getenv("PORT", 7860))
1115
-
1116
- # Use uvicorn to run the app
1117
  uvicorn.run(
1118
  app,
1119
  host="0.0.0.0",
1120
- port=port,
1121
  log_level="info"
1122
  )
 
1110
  print("Starting Enhanced Document QA System...")
1111
  print(f"Gradio version: {gr.__version__}")
1112
 
 
 
 
 
1113
  uvicorn.run(
1114
  app,
1115
  host="0.0.0.0",
1116
+ port=7860,
1117
  log_level="info"
1118
  )
requirements.txt CHANGED
@@ -8,4 +8,5 @@ PyPDF2==3.0.1
8
  python-docx==0.8.11
9
  requests==2.31.0
10
  fastapi==0.104.1
11
- uvicorn==0.24.0
 
 
8
  python-docx==0.8.11
9
  requests==2.31.0
10
  fastapi==0.104.1
11
+ uvicorn==0.24.0
12
+ accelerate