Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def speech_to_text(audio):
|
|
16 |
def text_generation(text):
|
17 |
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-128k-instruct",
|
18 |
trust_remote_code=True)
|
19 |
-
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct"
|
20 |
|
21 |
messages = [
|
22 |
{"role": "user", "content": text}
|
|
|
16 |
def text_generation(text):
|
17 |
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-128k-instruct",
|
18 |
trust_remote_code=True)
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
|
20 |
|
21 |
messages = [
|
22 |
{"role": "user", "content": text}
|