Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,9 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
| 8 |
|
| 9 |
def preprocess_user_input(input_text):
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def full_auto_adjective_replacement(input_text)
|
|
@@ -38,6 +40,8 @@ def full_adjective_replacement(input_text)
|
|
| 38 |
text = replace_adjective_in_text(text, adjective, new_adjective)
|
| 39 |
print(text)
|
| 40 |
|
|
|
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
def get_adjectives(input_text):
|
|
|
|
| 8 |
|
| 9 |
def preprocess_user_input(input_text):
|
| 10 |
|
| 11 |
+
processed_text = full_adjective_replacement(input_text)
|
| 12 |
+
|
| 13 |
+
return processed_text
|
| 14 |
|
| 15 |
|
| 16 |
def full_auto_adjective_replacement(input_text)
|
|
|
|
| 40 |
text = replace_adjective_in_text(text, adjective, new_adjective)
|
| 41 |
print(text)
|
| 42 |
|
| 43 |
+
return text
|
| 44 |
+
|
| 45 |
|
| 46 |
|
| 47 |
def get_adjectives(input_text):
|