Spaces:
Running
Running
Update app_generation.py
Browse files- app_generation.py +2 -2
app_generation.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
import os
|
4 |
import time
|
5 |
import json
|
@@ -70,7 +70,7 @@ aspect_mapping= [
|
|
70 |
]
|
71 |
|
72 |
|
73 |
-
|
74 |
def score(prompt:str, images:List[Image.Image]):
|
75 |
if not prompt:
|
76 |
raise gr.Error("Please provide a prompt")
|
|
|
1 |
import gradio as gr
|
2 |
+
#import spaces
|
3 |
import os
|
4 |
import time
|
5 |
import json
|
|
|
70 |
]
|
71 |
|
72 |
|
73 |
+
#@spaces.GPU(duration=60)
|
74 |
def score(prompt:str, images:List[Image.Image]):
|
75 |
if not prompt:
|
76 |
raise gr.Error("Please provide a prompt")
|