Spaces:
Runtime error
Runtime error
Update text_generator.py
Browse files- text_generator.py +4 -0
text_generator.py
CHANGED
@@ -20,6 +20,10 @@ class TextGenerationTool(Tool):
|
|
20 |
payload = {
|
21 |
"inputs": prompt # Adjust this based on your model's input format
|
22 |
}
|
|
|
|
|
|
|
|
|
23 |
|
24 |
#def query(payload):
|
25 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
20 |
payload = {
|
21 |
"inputs": prompt # Adjust this based on your model's input format
|
22 |
}
|
23 |
+
|
24 |
+
payload = {
|
25 |
+
"inputs": "Can you please let us know more details about your ",
|
26 |
+
}
|
27 |
|
28 |
#def query(payload):
|
29 |
response = requests.post(API_URL, headers=headers, json=payload)
|