Spaces:
Sleeping
Sleeping
bug: setup the gradio version in README config.
Browse files- README.md +1 -1
- app.py +4 -4
- requirements.txt +1 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: "🤖" # Choose an emoji that represents your Space
|
|
4 |
colorFrom: "blue" # The starting color of the gradient in your Space thumbnail
|
5 |
colorTo: "indigo" # The ending color of the gradient in your Space thumbnail
|
6 |
sdk: "gradio" # The SDK you're using (gradio/streamlit/docker/static)
|
7 |
-
sdk_version: "
|
8 |
app_file: "app.py" # The file that contains your app. Make sure the path is correct.
|
9 |
python_version: "3.11.9" # Specify the python version, default is 3.10
|
10 |
pinned: false # Whether your Space stays pinned on your profile
|
|
|
4 |
colorFrom: "blue" # The starting color of the gradient in your Space thumbnail
|
5 |
colorTo: "indigo" # The ending color of the gradient in your Space thumbnail
|
6 |
sdk: "gradio" # The SDK you're using (gradio/streamlit/docker/static)
|
7 |
+
sdk_version: "4.28.2" # The version of the SDK
|
8 |
app_file: "app.py" # The file that contains your app. Make sure the path is correct.
|
9 |
python_version: "3.11.9" # Specify the python version, default is 3.10
|
10 |
pinned: false # Whether your Space stays pinned on your profile
|
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
print(f"Gradio version {gr.__version__}")
|
4 |
-
if gr.__version__ != '4.28.2':
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
import io
|
10 |
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
print(f"Gradio version {gr.__version__}")
|
4 |
+
# if gr.__version__ != '4.28.2':
|
5 |
+
# os.system("pip uninstall -y gradio")
|
6 |
+
# os.system("pip install gradio==4.28.2")
|
7 |
+
# print(f"Gradio version: {gr.__version__}")
|
8 |
|
9 |
import io
|
10 |
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
torch
|
2 |
torchvision
|
3 |
-
gradio
|
4 |
numpy
|
5 |
Pillow
|
6 |
transformers
|
|
|
1 |
torch
|
2 |
torchvision
|
3 |
+
# gradio
|
4 |
numpy
|
5 |
Pillow
|
6 |
transformers
|