Spaces:
Sleeping
Sleeping
saifeddinemk
commited on
Commit
•
d088330
1
Parent(s):
5716ab8
Fixed app v2
Browse files- app.py +5 -1
- requirements.txt +2 -5
app.py
CHANGED
@@ -36,4 +36,8 @@ async def test():
|
|
36 |
|
37 |
return {"test_response": response_content}
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
return {"test_response": response_content}
|
38 |
|
39 |
+
|
40 |
+
import uvicorn
|
41 |
+
|
42 |
+
if __name__ == "__main__":
|
43 |
+
uvicorn.run("main:app", host="0.0.0.0", port=8000)
|
requirements.txt
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
fastapi
|
2 |
uvicorn
|
3 |
-
torch
|
4 |
transformers
|
5 |
-
|
6 |
-
|
7 |
-
streamlit
|
8 |
-
git+https://github.com/abetlen/llama-cpp-python.git
|
|
|
1 |
fastapi
|
2 |
uvicorn
|
|
|
3 |
transformers
|
4 |
+
git+https://github.com/abetlen/llama-cpp-python.git
|
5 |
+
nest_asyncio
|
|
|
|