medmac01 commited on
Commit
4611bf9
·
1 Parent(s): d0caafa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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():