Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
-
import requests
|
3 |
-
import io
|
4 |
import random
|
5 |
import os
|
6 |
-
import
|
|
|
|
|
7 |
from PIL import Image
|
8 |
-
from
|
9 |
-
import
|
|
|
|
|
10 |
from fastapi import FastAPI
|
11 |
|
12 |
app = FastAPI()
|
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
import random
|
3 |
import os
|
4 |
+
import torch
|
5 |
+
import subprocess
|
6 |
+
import numpy as np
|
7 |
from PIL import Image
|
8 |
+
from transformers import AutoProcessor, AutoModelForCausalLM
|
9 |
+
from diffusers import DiffusionPipeline
|
10 |
+
import cv2
|
11 |
+
from datetime import datetime
|
12 |
from fastapi import FastAPI
|
13 |
|
14 |
app = FastAPI()
|