Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ async def root():
|
|
| 12 |
|
| 13 |
|
| 14 |
@app.post("/hello/")
|
| 15 |
-
|
| 16 |
print("model")
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b-it")
|
| 18 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
@app.post("/hello/")
|
| 15 |
+
def say_hello(msg: Annotated[str, Form()]):
|
| 16 |
print("model")
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b-it")
|
| 18 |
model = AutoModelForCausalLM.from_pretrained(
|