Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import time
|
| 2 |
import torch
|
| 3 |
-
import gradio as gr
|
| 4 |
from PIL import Image
|
| 5 |
from tqdm import tqdm
|
| 6 |
from threading import Thread
|
|
@@ -23,6 +22,8 @@ os.system("pip uninstall -y gradio")
|
|
| 23 |
os.system("pip install gradio==4.44.1")
|
| 24 |
os.system("pip install gradio_client==1.3.0")
|
| 25 |
|
|
|
|
|
|
|
| 26 |
|
| 27 |
IMAGE_TOKEN_INDEX=-200
|
| 28 |
PLACEHOLDER = """
|
|
|
|
| 1 |
import time
|
| 2 |
import torch
|
|
|
|
| 3 |
from PIL import Image
|
| 4 |
from tqdm import tqdm
|
| 5 |
from threading import Thread
|
|
|
|
| 22 |
os.system("pip install gradio==4.44.1")
|
| 23 |
os.system("pip install gradio_client==1.3.0")
|
| 24 |
|
| 25 |
+
import gradio as gr
|
| 26 |
+
|
| 27 |
|
| 28 |
IMAGE_TOKEN_INDEX=-200
|
| 29 |
PLACEHOLDER = """
|