akhooli commited on
Commit
a17ca27
1 Parent(s): d38cd8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,12 +12,12 @@ samples = [['أنت'
12
  ,0.94],['لكل شيء إذا ما'
13
  ,0.92],['.',0.99]]
14
  notes = """
15
- - Enter a short prompt or select (click) one of the examples
16
- - Control temperture (adjust) through slider (Higher usually better).
17
- - Clear and enter new prompt or select another example to regenerate
18
- - The '.' means start a new line (your prompt need not be long)
19
  - Be patient: this runs on CPU (free tier)
20
- - Feedback (Twitter): @akhooli
21
  """
22
  def sayPoetry(prompt, temp=0.95):
23
  gen = pipe(prompt, max_length=96, temperature = temp)[0]["generated_text"]
 
12
  ,0.94],['لكل شيء إذا ما'
13
  ,0.92],['.',0.99]]
14
  notes = """
15
+ - Enter a short prompt or select (click) one of the examples and click SEND
16
+ - Adjust temperture (parameter) through the slider (higher usually better).
17
+ - Clear and enter new prompt or select another example and SEND to regenerate
18
+ - The '.' means start a new line from no prompt (your prompt need not be long)
19
  - Be patient: this runs on CPU (free tier)
20
+ - Feedback (Twitter): @akhooli (https://twitter.com/akhooli/status/1611025232201977859)
21
  """
22
  def sayPoetry(prompt, temp=0.95):
23
  gen = pipe(prompt, max_length=96, temperature = temp)[0]["generated_text"]