Jeffreylex commited on
Commit
4ec1236
·
1 Parent(s): 3433365

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -193
README.md CHANGED
@@ -9,197 +9,26 @@ metrics:
9
  - character
10
  library_name: adapter-transformers
11
  ---
12
-
13
- # Model Card for Model ID
14
-
15
- <!-- Provide a quick summary of what the model is/does. -->
16
-
17
- This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
18
-
19
- # Model Details
20
-
21
- ## Model Description
22
-
23
- <!-- Provide a longer summary of what this model is. -->
24
-
25
-
26
-
27
- - **Developed by:** [More Information Needed]
28
- - **Shared by [optional]:** [More Information Needed]
29
- - **Model type:** [More Information Needed]
30
- - **Language(s) (NLP):** [More Information Needed]
31
- - **License:** [More Information Needed]
32
- - **Finetuned from model [optional]:** [More Information Needed]
33
-
34
- ## Model Sources [optional]
35
-
36
- <!-- Provide the basic links for the model. -->
37
-
38
- - **Repository:** [More Information Needed]
39
- - **Paper [optional]:** [More Information Needed]
40
- - **Demo [optional]:** [More Information Needed]
41
- GIT_LFS_SKIP_SMUDGE=1
42
  git lfs install
43
- git clone https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain
44
-
45
- # Uses
46
-
47
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
48
-
49
- ## Direct Use
50
-
51
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
52
-
53
- [More Information Needed]
54
-
55
- ## Downstream Use [optional]
56
-
57
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
58
-
59
- [More Information Needed]
60
-
61
- ## Out-of-Scope Use
62
-
63
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
64
-
65
- [More Information Needed]
66
-
67
- # Bias, Risks, and Limitations
68
-
69
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
70
-
71
- [More Information Needed]
72
-
73
- ## Recommendations
74
-
75
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
76
-
77
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
78
-
79
- ## How to Get Started with the Model
80
-
81
- Use the code below to get started with the model.
82
-
83
- [More Information Needed]
84
-
85
- # Training Details
86
-
87
- ## Training Data
88
-
89
- <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
90
-
91
- [More Information Needed]
92
-
93
- ## Training Procedure [optional]
94
-
95
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
96
-
97
- ### Preprocessing
98
-
99
- [More Information Needed]
100
-
101
- ### Speeds, Sizes, Times
102
-
103
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
-
105
- [More Information Needed]
106
-
107
- # Evaluation
108
-
109
- <!-- This section describes the evaluation protocols and provides the results. -->
110
-
111
- ## Testing Data, Factors & Metrics
112
-
113
- ### Testing Data
114
-
115
- <!-- This should link to a Data Card if possible. -->
116
-
117
- [More Information Needed]
118
-
119
- ### Factors
120
-
121
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
-
123
- [More Information Needed]
124
-
125
- ### Metrics
126
-
127
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
-
129
- [More Information Needed]
130
-
131
- ## Results
132
-
133
- [More Information Needed]
134
-
135
- ### Summary
136
-
137
-
138
-
139
- # Model Examination [optional]
140
-
141
- <!-- Relevant interpretability work for the model goes here -->
142
-
143
- [More Information Needed]
144
-
145
- # Environmental Impact
146
-
147
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
148
-
149
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
-
151
- - **Hardware Type:** [More Information Needed]
152
- - **Hours used:** [More Information Needed]
153
- - **Cloud Provider:** [More Information Needed]
154
- - **Compute Region:** [More Information Needed]
155
- - **Carbon Emitted:** [More Information Needed]
156
-
157
- # Technical Specifications [optional]
158
-
159
- ## Model Architecture and Objective
160
-
161
- [More Information Needed]
162
-
163
- ## Compute Infrastructure
164
-
165
- [More Information Needed]
166
-
167
- ### Hardware
168
-
169
- [More Information Needed]
170
-
171
- ### Software
172
-
173
- [More Information Needed]
174
-
175
- # Citation [optional]
176
-
177
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
178
-
179
- **BibTeX:**
180
-
181
- [More Information Needed]
182
-
183
- **APA:**
184
-
185
- [More Information Needed]
186
-
187
- # Glossary [optional]
188
-
189
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
190
-
191
- [More Information Needed]
192
-
193
- # More Information [optional]
194
-
195
- [More Information Needed]
196
-
197
- # Model Card Authors [optional]
198
-
199
- [More Information Needed]
200
-
201
- # Model Card Contact
202
-
203
- [More Information Needed]
204
-
205
-
 
9
  - character
10
  library_name: adapter-transformers
11
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  git lfs install
13
+ git clone https://huggingface.co/spaces/MirageML/dreambooth
14
+
15
+
16
+ import os
17
+ import requests
18
+
19
+ headers={"Authorization": f"Bearer {os.environ['EXHUMAN_API_KEY']}"}
20
+
21
+ body = {
22
+ 'name': 'Elon Musk',
23
+ 'context': [
24
+ {'turn': 'bot', 'message': 'Good morning!'},
25
+ {'turn': 'user', 'message': 'hi how are you?'}
26
+ ]
27
+
28
+ }
29
+ api_endpoint = "https://api.exh.ai/chatbot/v1/get_response"
30
+
31
+ res = requests.post(api_endpoint, json=body, headers=headers)
32
+ response = res.json()["response"]
33
+ print(f"chatbot reply = {response}")
34
+