anirudh-sub commited on
Commit
b81ae68
·
1 Parent(s): 78e7b9b

Testing something with app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -33,7 +33,8 @@ pipeline = transformers.pipeline(
33
 
34
 
35
  def debate_response(text):
36
- sequences = pipeline(
 
37
  text,
38
  do_sample=True,
39
  top_k=10,
@@ -43,8 +44,9 @@ def debate_response(text):
43
  )
44
  response = ""
45
  for seq in sequences:
 
46
  reponse += {seq['generated_text']}
47
- return resposnse
48
 
49
  intf = gr.Interface(fn=debate_response, inputs=gr.Textbox(), outputs="text")
50
  intf.launch()
 
33
 
34
 
35
  def debate_response(text):
36
+ return "testing"
37
+ """sequences = pipeline(
38
  text,
39
  do_sample=True,
40
  top_k=10,
 
44
  )
45
  response = ""
46
  for seq in sequences:
47
+ print(f"Result: {seq['generated_text']}")
48
  reponse += {seq['generated_text']}
49
+ return resposnse"""
50
 
51
  intf = gr.Interface(fn=debate_response, inputs=gr.Textbox(), outputs="text")
52
  intf.launch()