Spaces:
Sleeping
Sleeping
Commit
·
ddd6522
1
Parent(s):
8724d90
Update main.py
Browse files
main.py
CHANGED
|
@@ -16,7 +16,7 @@ def format_prompt(message, history):
|
|
| 16 |
prompt += f"[INST] {message} [/INST]"
|
| 17 |
return prompt
|
| 18 |
|
| 19 |
-
@app.post("/Genera")
|
| 20 |
def read_root(request: Request, input_data: InputData):
|
| 21 |
input_text = input_data.input
|
| 22 |
history = [] # Puoi definire la history se necessario
|
|
|
|
| 16 |
prompt += f"[INST] {message} [/INST]"
|
| 17 |
return prompt
|
| 18 |
|
| 19 |
+
@app.post("/Genera/")
|
| 20 |
def read_root(request: Request, input_data: InputData):
|
| 21 |
input_text = input_data.input
|
| 22 |
history = [] # Puoi definire la history se necessario
|