File size: 1,474 Bytes
172982e
86bd4a8
 
172982e
86bd4a8
172982e
 
 
 
 
 
 
86bd4a8
 
997414e
86bd4a8
172982e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: Pizza order bot
emoji: 👀
colorFrom: indigo
colorTo: red
sdk: gradio
app_file: app.py
pinned: false
license: openrail
duplicated_from: Antoine245/bot
---

Duplicated from https://huggingface.co/spaces/Antoine245/bot
This example shows how you may develop bots with makersuite to make it work properly in google's plateform and then make it available wiht gradio and HF.
Embedded here: https://comparateur-image.web.app/Pizza_order_bot/

# Easy Chatbot with PaLM API

1. go to https://makersuite.google.com/app/home
2. create your bot in the chat prompt
3. change app.py file with your own context and examples
4. add your own palm api key https://makersuite.google.com/app/apikey to your HF environment (cf https://huggingface.co/docs/huggingface_hub/guides/manage-spaces)
5. ready to use chatbot that can be used as embedded in any websites (cf https://comparateur-image.web.app/bot/)


### Errors

1. clear button (gr.ClearButton needs a fix in embedded websites), I use a basic button until fixed

### Use community if any question/request

### Please check mkersuite quickstart

Makersuite allows you to change context and examples in order to get the best chatbot and then export the code. You can then try it in gradio by cloning this space and changing context and examples.

Check out https://developers.generativeai.google/tutorials/makersuite_quickstart

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference