Antoine245 commited on
Commit
20493f8
·
1 Parent(s): 172982e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -10
app.py CHANGED
@@ -6,20 +6,44 @@ import google.generativeai as palm
6
  palm.configure(api_key=os.environ.get("palm_key"))
7
 
8
  defaults = {
9
- 'model': 'models/chat-bison-001',
10
- 'temperature': 0.25,
11
- 'candidate_count': 1,
12
- 'top_k': 40,
13
- 'top_p': 0.95,
14
  }
15
 
16
- context = "Your IT assistant"
17
 
18
  examples = [
19
- [
20
- "Hey my computer is broken",
21
- "Hey, what is the issue with your computer?"
22
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  ]
24
 
25
  history = ['']
 
6
  palm.configure(api_key=os.environ.get("palm_key"))
7
 
8
  defaults = {
9
+ 'model': 'models/chat-bison-001',
10
+ 'temperature': 0.05,
11
+ 'candidate_count': 1,
12
+ 'top_k': 40,
13
+ 'top_p': 0.95,
14
  }
15
 
16
+ context = ""
17
 
18
  examples = [
19
+ [
20
+ "Hi, I want to order pizzas.",
21
+ "Hello, we have 3 typers of pizzas: Margherita, Cheesy-Bacon and Vegetarian. Prices are small (9$), medium (11$) and large (13$)."
22
+ ],
23
+ [
24
+ "I want a large margherita and a medium cheesy-bacon.",
25
+ "Do you want any drinks? We have coke (3$) or Mountain dew (5$)."
26
+ ],
27
+ [
28
+ "Yes 2 cokes.",
29
+ "Total will be 19$. Please enter your address and phone number"
30
+ ],
31
+ [
32
+ "Paris eiffel tower, 0653145863",
33
+ "Perfect ! Do you need anything else?"
34
+ ],
35
+ [
36
+ "No thanks.",
37
+ "Have a nice day!\nHere is the sum up: \n{\npizza_type_1: \"margherita\",\npizza_type_2: \"cheesy-bacon\",\npizza_size_1: \"L\",\npizza_size_2: \"M\",\ndrink_1: \"coke\",\ndrink_2: \"coke\",\ntotal_price: \"19\",\naddress: \"Paris, Eiffel Tower\",\nphone_number: \"0653145863\"\n}\nDo you want to change anything?"
38
+ ],
39
+ [
40
+ "Yes, i'd like to change margherita size to M.",
41
+ "Have a nice day!\nHere is the sum up: \n{\npizza_type_1: \"margherita\",\npizza_type_2: \"cheesy-bacon\",\npizza_size_1: \"M\",\npizza_size_2: \"M\",\ndrink_1: \"coke\",\ndrink_2: \"coke\",\ntotal_price: \"19\",\naddress: \"Paris, Eiffel Tower\",\nphone_number: \"0653145863\"\n}\nDo you want to change anything?"
42
+ ],
43
+ [
44
+ "No thanks",
45
+ "Have a nice day!"
46
+ ]
47
  ]
48
 
49
  history = ['']