Spaces:
Runtime error
Runtime error
jiayueru
commited on
Commit
β’
bfe9506
1
Parent(s):
a57821f
Files
Browse files
app.py
CHANGED
@@ -1,12 +1,5 @@
|
|
1 |
-
import os
|
2 |
-
import subprocess
|
3 |
-
import shlex
|
4 |
-
from src.demo.model import DesignEdit
|
5 |
import spaces
|
6 |
|
7 |
-
from src.demo.demo import *
|
8 |
-
import shlex
|
9 |
-
|
10 |
import cv2
|
11 |
import gradio as gr
|
12 |
|
@@ -19,8 +12,6 @@ pipe.to('cuda')
|
|
19 |
def generate(prompt):
|
20 |
return pipe(prompt).images
|
21 |
|
22 |
-
gr.Image()
|
23 |
-
|
24 |
gr.Interface(
|
25 |
fn=generate,
|
26 |
inputs=gr.Text(),
|
|
|
|
|
|
|
|
|
|
|
1 |
import spaces
|
2 |
|
|
|
|
|
|
|
3 |
import cv2
|
4 |
import gradio as gr
|
5 |
|
|
|
12 |
def generate(prompt):
|
13 |
return pipe(prompt).images
|
14 |
|
|
|
|
|
15 |
gr.Interface(
|
16 |
fn=generate,
|
17 |
inputs=gr.Text(),
|