Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def format_prompt(topic, description, difficulty):
|
|
| 23 |
return prompt
|
| 24 |
|
| 25 |
# The function to generate learning content based on the inputs
|
| 26 |
-
def generate_learning_content(topic, description, difficulty, temperature=0.9, max_new_tokens=
|
| 27 |
temperature = max(float(temperature), 1e-2) # Ensure minimum temperature
|
| 28 |
top_p = float(top_p)
|
| 29 |
|
|
|
|
| 23 |
return prompt
|
| 24 |
|
| 25 |
# The function to generate learning content based on the inputs
|
| 26 |
+
def generate_learning_content(topic, description, difficulty, temperature=0.9, max_new_tokens=2000, top_p=0.95, repetition_penalty=1.2):
|
| 27 |
temperature = max(float(temperature), 1e-2) # Ensure minimum temperature
|
| 28 |
top_p = float(top_p)
|
| 29 |
|