Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ agriculture: {agriculture}
|
|
63 |
output = query({"inputs": instruction, "parameters":{"max_new_tokens":250, "temperature":0.4, "return_full_text":False}})
|
64 |
print(headers)
|
65 |
print(output)
|
66 |
-
return f"Bot: {output[0]['generated_text']}"
|
67 |
|
68 |
# Streamlit app
|
69 |
def main():
|
|
|
63 |
output = query({"inputs": instruction, "parameters":{"max_new_tokens":250, "temperature":0.4, "return_full_text":False}})
|
64 |
print(headers)
|
65 |
print(output)
|
66 |
+
return f"Bot: {translate(output[0]['generated_text'])}"
|
67 |
|
68 |
# Streamlit app
|
69 |
def main():
|