Spaces:
Sleeping
Sleeping
global variables
Browse files
app.py
CHANGED
@@ -28,6 +28,9 @@ load_model()
|
|
28 |
|
29 |
@spaces.GPU
|
30 |
def ask(prompt):
|
|
|
|
|
|
|
31 |
if not prompt:
|
32 |
return {"error": "Prompt is missing"}
|
33 |
|
|
|
28 |
|
29 |
@spaces.GPU
|
30 |
def ask(prompt):
|
31 |
+
|
32 |
+
global tokenizer, model
|
33 |
+
|
34 |
if not prompt:
|
35 |
return {"error": "Prompt is missing"}
|
36 |
|