JuanJoseMV commited on
Commit
33f9b9a
·
1 Parent(s): ed8c752
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def classify(sentiment):
35
  'burnin': 450,
36
  'max_iter': 100,
37
  'top_k': 100,
38
- 'seed_text': f"[{sentiment}-0] [{sentiment}-1] [{sentiment}-2]",
39
  # 'verbose': True
40
  }
41
  sents = en_model.generate(**parameters)
@@ -50,7 +50,7 @@ demo = gr.Blocks()
50
 
51
  with demo:
52
  gr.Markdown()
53
- inputs = gr.Radio(["POSITIVE", "NEGATIVE"], label="Sentiment to generate") #gr.Dropdown(["POSITIVE", "NEGATIVE"], label="Sentiment to generate")
54
  output = gr.Textbox(label="Generated tweet")
55
  b1 = gr.Button("Generate")
56
  b1.click(classify, inputs=inputs, outputs=output)
 
35
  'burnin': 450,
36
  'max_iter': 100,
37
  'top_k': 100,
38
+ 'seed_text': f"[{sentiment}-0] [{sentiment}-1] [{sentiment}-2] Ronaldo",
39
  # 'verbose': True
40
  }
41
  sents = en_model.generate(**parameters)
 
50
 
51
  with demo:
52
  gr.Markdown()
53
+ inputs = gr.Radio(["POSITIVE", "NEGATIVE"], label="Sentiment to generate") # gr.Dropdown(["POSITIVE", "NEGATIVE"], label="Sentiment to generate")
54
  output = gr.Textbox(label="Generated tweet")
55
  b1 = gr.Button("Generate")
56
  b1.click(classify, inputs=inputs, outputs=output)