jadend commited on
Commit
abfe52c
·
1 Parent(s): 171a93d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -3
app.py CHANGED
@@ -63,7 +63,7 @@ def mr_bot(premise, tokens, temperature):
63
 
64
 
65
  # Gradio App interface and login set up
66
- description = "Use the examples below to see how different prompts generate different results."
67
 
68
  demo = gr.Interface(fn=mr_bot,
69
  inputs=[gr.Textbox(placeholder="Select an example", interactive=False), gr.Slider(1, 800, default=800), gr.Slider(0.1, 1, default=0.75)],
@@ -72,8 +72,24 @@ demo = gr.Interface(fn=mr_bot,
72
  title="Intro to AI Assignment",
73
  description=description,
74
  cache_examples=False,
75
- examples = [["Write me a rap song about how the price of rent is too high.", 800, .75],
76
- ["Make a weekly meal plan for me comprised of an entirely vegan diet.", 800, .50]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  )
78
 
79
  if __name__ == "__main__":
 
63
 
64
 
65
  # Gradio App interface and login set up
66
+ description = "Use the examples below to see how different prompts generate different results. Change the the Temperture to see how the prompts become more rigid and repeatable at lower temperatures and more creative at higher temperatures. Change the token limit to adjust the length of the response you are recieving, which also changes the type of response you will receive."
67
 
68
  demo = gr.Interface(fn=mr_bot,
69
  inputs=[gr.Textbox(placeholder="Select an example", interactive=False), gr.Slider(1, 800, default=800), gr.Slider(0.1, 1, default=0.75)],
 
72
  title="Intro to AI Assignment",
73
  description=description,
74
  cache_examples=False,
75
+ examples = [
76
+ # Story Continuation:
77
+ ["In a magical forest, a talking frog met a weary traveler. The frog said,", 800, .95],
78
+ # Open-ended Question:
79
+ ["What are some unconventional uses for a paperclip?", 800, .50],
80
+ # Creative Writing:
81
+ ["Write a poem about a sunset in a futuristic city.", 800, .70],
82
+ # Invention Ideas:
83
+ ["Imagine a new gadget that could change how we work from home. Describe it.", 800, .50],
84
+ # Humorous Responses:
85
+ ["Tell a funny story about a Corgi who thinks it's a Bunny.", 800, .80],
86
+ # Fantasy Scenarios:
87
+ ["Describe a day in the life of a wizard living in Philadelphia.", 800, .70],
88
+ # Coding Scenario:
89
+ ["Write me a function in python that involves rolling two 20-sided dice and adding them by a user inputted number.", 800, .50],
90
+ # Office Tasking:
91
+ ["Write me an email to my boss asking to meet about the upcoming conference.", 800, .50],
92
+ ]
93
  )
94
 
95
  if __name__ == "__main__":