Update demo.py
Browse files
demo.py
CHANGED
@@ -14,7 +14,10 @@ EN_RANDOM_TEXTS_PATH = os.path.join(BASE_PATH, "english_random_texts.txt")
|
|
14 |
RU_PROMPT_TEXTS_PATH = os.path.join(BASE_PATH, "prompt.txt")
|
15 |
EN_PROMPT_TEXTS_PATH = os.path.join(BASE_PATH, "english_prompt.txt")
|
16 |
|
17 |
-
|
|
|
|
|
|
|
18 |
def load_texts(filepath):
|
19 |
if not os.path.exists(os.path.dirname(filepath)) and os.path.dirname(filepath) != '':
|
20 |
print(f"Warning: Directory '{os.path.dirname(filepath)}' not found.")
|
|
|
14 |
RU_PROMPT_TEXTS_PATH = os.path.join(BASE_PATH, "prompt.txt")
|
15 |
EN_PROMPT_TEXTS_PATH = os.path.join(BASE_PATH, "english_prompt.txt")
|
16 |
|
17 |
+
@spaces.GPU
|
18 |
+
def dummy():
|
19 |
+
return
|
20 |
+
|
21 |
def load_texts(filepath):
|
22 |
if not os.path.exists(os.path.dirname(filepath)) and os.path.dirname(filepath) != '':
|
23 |
print(f"Warning: Directory '{os.path.dirname(filepath)}' not found.")
|