Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -43,8 +43,9 @@ def generate(item: Item):
|
|
| 43 |
|
| 44 |
#formatted_prompt = format_prompt(f"{item.system_prompt}, {item.prompt}", item.history)
|
| 45 |
text = item.prompt
|
|
|
|
| 46 |
labels = ["Requirement", "Information"]
|
| 47 |
-
client.zero_shot_classification(text, labels)
|
| 48 |
#stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 49 |
output = ""
|
| 50 |
|
|
|
|
| 43 |
|
| 44 |
#formatted_prompt = format_prompt(f"{item.system_prompt}, {item.prompt}", item.history)
|
| 45 |
text = item.prompt
|
| 46 |
+
#print(item.prompt)
|
| 47 |
labels = ["Requirement", "Information"]
|
| 48 |
+
stream = client.zero_shot_classification(text, labels)
|
| 49 |
#stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 50 |
output = ""
|
| 51 |
|