Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,11 @@ import os
|
|
5 |
import openai
|
6 |
import gradio
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
openai.api_key = os.getenv('openaikey')
|
9 |
|
10 |
def predict(input, manual_query_repacement, history=[]):
|
|
|
5 |
import openai
|
6 |
import gradio
|
7 |
|
8 |
+
import torch
|
9 |
+
from diffusers import StableDiffusionPipeline
|
10 |
+
from torch import autocast
|
11 |
+
|
12 |
+
|
13 |
openai.api_key = os.getenv('openaikey')
|
14 |
|
15 |
def predict(input, manual_query_repacement, history=[]):
|