Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from text_generation import Client
|
|
| 10 |
#FalcomLM-instruct endpoint on the text_generation library
|
| 11 |
client = Client(API_URL, headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
|
| 12 |
|
| 13 |
-
def generate(input
|
| 14 |
output = client.generate(f' Act as a dream interpreter and analyze dreams using the psychoanalytical approach. Elaborate on the different possible interpretation and use the psychological aspects. The dream: {input}', max_new_tokens = 500).generated_text
|
| 15 |
return output
|
| 16 |
|
|
|
|
| 10 |
#FalcomLM-instruct endpoint on the text_generation library
|
| 11 |
client = Client(API_URL, headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
|
| 12 |
|
| 13 |
+
def generate(input):
|
| 14 |
output = client.generate(f' Act as a dream interpreter and analyze dreams using the psychoanalytical approach. Elaborate on the different possible interpretation and use the psychological aspects. The dream: {input}', max_new_tokens = 500).generated_text
|
| 15 |
return output
|
| 16 |
|