Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ prompt = os.environ["prompt"]
|
|
| 11 |
client = Client(API_URL, headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
|
| 12 |
|
| 13 |
def generate(input):
|
| 14 |
-
output = client.generate(prompt, max_new_tokens = 500).generated_text
|
| 15 |
return output
|
| 16 |
|
| 17 |
|
|
|
|
| 11 |
client = Client(API_URL, headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
|
| 12 |
|
| 13 |
def generate(input):
|
| 14 |
+
output = client.generate(prompt + f'{input}', max_new_tokens = 500).generated_text
|
| 15 |
return output
|
| 16 |
|
| 17 |
|