Spaces:
Runtime error
Runtime error
downgrade gradio version to 4.44.1 and update requirements
Browse files- app.py +3 -3
- requirements.txt +3 -3
app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import base64, os
|
| 3 |
# add a command for installing flash-attn
|
| 4 |
os.system('pip install flash-attn --no-build-isolation')
|
| 5 |
-
|
| 6 |
|
| 7 |
from typing import Optional
|
| 8 |
import spaces
|
|
@@ -282,5 +282,5 @@ with gr.Blocks() as demo:
|
|
| 282 |
)
|
| 283 |
|
| 284 |
# demo.launch(debug=False, show_error=True, share=True)
|
| 285 |
-
demo.launch(share=True, server_port=7861, server_name='0.0.0.0')
|
| 286 |
-
|
|
|
|
| 2 |
import base64, os
|
| 3 |
# add a command for installing flash-attn
|
| 4 |
os.system('pip install flash-attn --no-build-isolation')
|
| 5 |
+
os.system("pip install gradio==4.44.1")
|
| 6 |
|
| 7 |
from typing import Optional
|
| 8 |
import spaces
|
|
|
|
| 282 |
)
|
| 283 |
|
| 284 |
# demo.launch(debug=False, show_error=True, share=True)
|
| 285 |
+
# demo.launch(share=True, server_port=7861, server_name='0.0.0.0')
|
| 286 |
+
demo.queue().launch(share=True)
|
requirements.txt
CHANGED
|
@@ -8,12 +8,12 @@ shortuuid
|
|
| 8 |
accelerate==0.34.2
|
| 9 |
peft==0.4.0
|
| 10 |
bitsandbytes==0.44.1
|
| 11 |
-
pydantic
|
| 12 |
markdown2[all]
|
| 13 |
numpy
|
| 14 |
scikit-learn==1.5.0
|
| 15 |
-
gradio==
|
| 16 |
-
gradio_client
|
| 17 |
spaces
|
| 18 |
requests
|
| 19 |
httpx
|
|
|
|
| 8 |
accelerate==0.34.2
|
| 9 |
peft==0.4.0
|
| 10 |
bitsandbytes==0.44.1
|
| 11 |
+
pydantic<2.0
|
| 12 |
markdown2[all]
|
| 13 |
numpy
|
| 14 |
scikit-learn==1.5.0
|
| 15 |
+
gradio==4.44.1
|
| 16 |
+
gradio_client==1.7.2
|
| 17 |
spaces
|
| 18 |
requests
|
| 19 |
httpx
|