Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
from huggingface_hub import login
|
| 4 |
-
|
| 5 |
|
| 6 |
def clone_and_initialize_repo(repo_url, target_dir):
|
| 7 |
"""
|
|
@@ -93,7 +93,7 @@ def modify_file(file_path):
|
|
| 93 |
print(f"Error modifying file {file_path}: {e}")
|
| 94 |
raise
|
| 95 |
|
| 96 |
-
|
| 97 |
def main():
|
| 98 |
"""
|
| 99 |
Main function to perform all operations.
|
|
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
from huggingface_hub import login
|
| 4 |
+
import spaces
|
| 5 |
|
| 6 |
def clone_and_initialize_repo(repo_url, target_dir):
|
| 7 |
"""
|
|
|
|
| 93 |
print(f"Error modifying file {file_path}: {e}")
|
| 94 |
raise
|
| 95 |
|
| 96 |
+
@spaces.GPU(duration=120)
|
| 97 |
def main():
|
| 98 |
"""
|
| 99 |
Main function to perform all operations.
|