Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ def duplicate(source_repo, dst_repo, repo_type, private, overwrite, auto_dir, oa
|
|
74 |
|
75 |
except Exception as e:
|
76 |
print(e)
|
|
|
77 |
|
78 |
interface = gr.Interface(
|
79 |
fn=duplicate,
|
|
|
74 |
|
75 |
except Exception as e:
|
76 |
print(e)
|
77 |
+
raise gr.Error(f"Error occured: {e}")
|
78 |
|
79 |
interface = gr.Interface(
|
80 |
fn=duplicate,
|