Spaces:
Runtime error
Runtime error
Adding openai and gradio component imports
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
import os
|
3 |
import torch
|
4 |
from omegaconf import OmegaConf
|
5 |
from gligen.task_grounded_generation import grounded_generation_box, load_ckpt, load_common_ckpt
|
@@ -17,6 +16,11 @@ from datetime import datetime
|
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
hf_hub_download = partial(hf_hub_download, library_name="gligen_demo")
|
19 |
import sys
|
|
|
|
|
|
|
|
|
|
|
20 |
sys.tracebacklimit = 0
|
21 |
def load_from_hf(repo_id, filename='diffusion_pytorch_model.bin', subfolder=None):
|
22 |
cache_file = hf_hub_download(repo_id=repo_id, filename=filename, subfolder=subfolder)
|
|
|
1 |
import gradio as gr
|
|
|
2 |
import torch
|
3 |
from omegaconf import OmegaConf
|
4 |
from gligen.task_grounded_generation import grounded_generation_box, load_ckpt, load_common_ckpt
|
|
|
16 |
from huggingface_hub import hf_hub_download
|
17 |
hf_hub_download = partial(hf_hub_download, library_name="gligen_demo")
|
18 |
import sys
|
19 |
+
|
20 |
+
import os
|
21 |
+
import openai
|
22 |
+
from gradio.components import Textbox, Text
|
23 |
+
|
24 |
sys.tracebacklimit = 0
|
25 |
def load_from_hf(repo_id, filename='diffusion_pytorch_model.bin', subfolder=None):
|
26 |
cache_file = hf_hub_download(repo_id=repo_id, filename=filename, subfolder=subfolder)
|