Spaces:
Runtime error
Runtime error
saimemrekanat
commited on
Commit
•
d7e1e5d
1
Parent(s):
2759a23
gradio client test
Browse files- app.py +0 -7
- requirements.txt +1 -2
app.py
CHANGED
@@ -5,7 +5,6 @@ from __future__ import annotations
|
|
5 |
import argparse
|
6 |
import torch
|
7 |
import gradio as gr
|
8 |
-
import gradio_client as grc
|
9 |
|
10 |
from vtoonify_model import Model
|
11 |
|
@@ -83,12 +82,6 @@ sample_video = ['./vtoonify/data/529_2.mp4','./vtoonify/data/7154235.mp4','./vto
|
|
83 |
sample_vid = gr.Video(label='Video file') #for displaying the example
|
84 |
example_videos = gr.components.Dataset(components=[sample_vid], samples=[[path] for path in sample_video], type='values', label='Video Examples')
|
85 |
|
86 |
-
def print_result(x):
|
87 |
-
print(x, "The translated result is: {x}")
|
88 |
-
|
89 |
-
client = grc.Client(space="232labs/VToonify")
|
90 |
-
client.pprint()
|
91 |
-
|
92 |
def main():
|
93 |
args = parse_args()
|
94 |
args.device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
|
5 |
import argparse
|
6 |
import torch
|
7 |
import gradio as gr
|
|
|
8 |
|
9 |
from vtoonify_model import Model
|
10 |
|
|
|
82 |
sample_vid = gr.Video(label='Video file') #for displaying the example
|
83 |
example_videos = gr.components.Dataset(components=[sample_vid], samples=[[path] for path in sample_video], type='values', label='Video Examples')
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
def main():
|
86 |
args = parse_args()
|
87 |
args.device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
requirements.txt
CHANGED
@@ -4,5 +4,4 @@ opencv-python-headless
|
|
4 |
Pillow
|
5 |
scipy
|
6 |
torch
|
7 |
-
torchvision
|
8 |
-
gradio_client
|
|
|
4 |
Pillow
|
5 |
scipy
|
6 |
torch
|
7 |
+
torchvision
|
|