Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8b96263
1
Parent(s):
3160cce
fix gradio
Browse files- app.py +1 -1
- utils/__pycache__/interface.cpython-310.pyc +0 -0
- utils/interface.py +1 -1
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def main():
|
|
| 37 |
interface = MIMOInterface(args.model_path)
|
| 38 |
demo = interface.create_interface()
|
| 39 |
|
| 40 |
-
demo.launch()
|
| 41 |
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
|
|
|
| 37 |
interface = MIMOInterface(args.model_path)
|
| 38 |
demo = interface.create_interface()
|
| 39 |
|
| 40 |
+
demo.launch(allowed_paths=['./assets'])
|
| 41 |
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
utils/__pycache__/interface.cpython-310.pyc
CHANGED
|
Binary files a/utils/__pycache__/interface.cpython-310.pyc and b/utils/__pycache__/interface.cpython-310.pyc differ
|
|
|
utils/interface.py
CHANGED
|
@@ -327,7 +327,7 @@ class MIMOInterface:
|
|
| 327 |
def create_interface(self):
|
| 328 |
theme = gr.themes.Soft()
|
| 329 |
|
| 330 |
-
with gr.Blocks(theme=theme
|
| 331 |
gr.HTML(
|
| 332 |
"""
|
| 333 |
<div class="main-header">
|
|
|
|
| 327 |
def create_interface(self):
|
| 328 |
theme = gr.themes.Soft()
|
| 329 |
|
| 330 |
+
with gr.Blocks(theme=theme) as demo:
|
| 331 |
gr.HTML(
|
| 332 |
"""
|
| 333 |
<div class="main-header">
|