adarshj322 commited on
Commit
1468b43
1 Parent(s): 9718b31
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def clean_text(text):
35
  text = re.sub(r'\s+', ' ', text).strip()
36
  return text
37
 
38
- def generateAnswer(question){
39
 
40
  question = "<question>" + clean_text(question) + "<answer>"
41
 
@@ -51,7 +51,7 @@ def generateAnswer(question){
51
  tokenizer.batch_decode(output_ids, skip_special_tokens=True)]
52
  print(outputs_batch)
53
  return outputs_batch[0]
54
- }
55
 
56
 
57
  iface = gradio.Interface(fn=generateAnswer, inputs="text", outputs="text")
 
35
  text = re.sub(r'\s+', ' ', text).strip()
36
  return text
37
 
38
+ def generateAnswer(question):
39
 
40
  question = "<question>" + clean_text(question) + "<answer>"
41
 
 
51
  tokenizer.batch_decode(output_ids, skip_special_tokens=True)]
52
  print(outputs_batch)
53
  return outputs_batch[0]
54
+
55
 
56
 
57
  iface = gradio.Interface(fn=generateAnswer, inputs="text", outputs="text")