Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,6 @@ def promptifier(prompt):
|
|
| 58 |
stream = client1.text_generation(formatted_prompt, max_new_tokens=100)
|
| 59 |
return stream
|
| 60 |
|
| 61 |
-
# Generator
|
| 62 |
-
@spaces.GPU(duration=60, queue=False)
|
| 63 |
def king(type ,
|
| 64 |
input_image ,
|
| 65 |
instruction: str ,
|
|
@@ -128,7 +126,6 @@ def king(type ,
|
|
| 128 |
return seed, refine
|
| 129 |
|
| 130 |
client = InferenceClient()
|
| 131 |
-
# Prompt classifier
|
| 132 |
def response(instruction, input_image=None ):
|
| 133 |
if input_image is None:
|
| 134 |
output="Image Generation"
|
|
|
|
| 58 |
stream = client1.text_generation(formatted_prompt, max_new_tokens=100)
|
| 59 |
return stream
|
| 60 |
|
|
|
|
|
|
|
| 61 |
def king(type ,
|
| 62 |
input_image ,
|
| 63 |
instruction: str ,
|
|
|
|
| 126 |
return seed, refine
|
| 127 |
|
| 128 |
client = InferenceClient()
|
|
|
|
| 129 |
def response(instruction, input_image=None ):
|
| 130 |
if input_image is None:
|
| 131 |
output="Image Generation"
|