anirudh-sub commited on
Commit
cf665c9
·
1 Parent(s): 332150c

Testing something with app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -14
app.py CHANGED
@@ -15,19 +15,8 @@ pipeline = transformers.pipeline(
15
 
16
 
17
  def debate_response(text):
18
- sequences = pipeline(
19
- text,
20
- do_sample=True,
21
- top_k=10,
22
- num_return_sequences=1,
23
- eos_token_id=tokenizer.eos_token_id,
24
- max_length=500,
25
- )
26
- response = ""
27
- for seq in sequences:
28
- print(f"Result: {seq['generated_text']}")
29
- reponse += {seq['generated_text']}
30
- return resposnse
31
 
32
  intf = gr.Interface(fn=debate_response, inputs=gr.Textbox(), outputs="text")
33
- intf.launch()
 
15
 
16
 
17
  def debate_response(text):
18
+ return "testing"
19
+
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  intf = gr.Interface(fn=debate_response, inputs=gr.Textbox(), outputs="text")
22
+ intf.launch()