Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,16 +156,6 @@ def update_compute_options(provider, region):
|
|
| 156 |
value=avalialbe_compute_options[0] if len(avalialbe_compute_options) > 0 else None
|
| 157 |
)
|
| 158 |
|
| 159 |
-
def get_sha_of_branch(model_id, branch_name):
|
| 160 |
-
repo = Repository(
|
| 161 |
-
local_dir=model_id,
|
| 162 |
-
clone_from=model_id,
|
| 163 |
-
repo_type="model",
|
| 164 |
-
skip_lfs_files=True,
|
| 165 |
-
revision=branch_name)
|
| 166 |
-
|
| 167 |
-
return repo.git_head_hash()
|
| 168 |
-
|
| 169 |
with gr.Blocks() as demo2:
|
| 170 |
gr.Markdown(
|
| 171 |
"""
|
|
@@ -180,10 +170,7 @@ with gr.Blocks() as demo2:
|
|
| 180 |
)
|
| 181 |
|
| 182 |
providers = avaliable_providers()
|
| 183 |
-
head_sha =
|
| 184 |
-
"chansung/my-funny-cat",
|
| 185 |
-
"v1673257770"
|
| 186 |
-
)
|
| 187 |
|
| 188 |
with gr.Row():
|
| 189 |
provider_selector = gr.Dropdown(
|
|
|
|
| 156 |
value=avalialbe_compute_options[0] if len(avalialbe_compute_options) > 0 else None
|
| 157 |
)
|
| 158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
with gr.Blocks() as demo2:
|
| 160 |
gr.Markdown(
|
| 161 |
"""
|
|
|
|
| 170 |
)
|
| 171 |
|
| 172 |
providers = avaliable_providers()
|
| 173 |
+
head_sha = "2a520e132597a810e396ca28805d98ce56ec3544"
|
|
|
|
|
|
|
|
|
|
| 174 |
|
| 175 |
with gr.Row():
|
| 176 |
provider_selector = gr.Dropdown(
|