Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
-
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-
|
| 9 |
|
| 10 |
recorded_audio = audio_recorder()
|
| 11 |
if recorded_audio:
|
|
@@ -28,10 +28,10 @@ if recorded_audio:
|
|
| 28 |
out2 = pipe2(messages)
|
| 29 |
|
| 30 |
text = st.text_area("enter some text")
|
| 31 |
-
pipe2 = pipeline("text-generation", model="Qwen/Qwen2.5-1.5B-Instruct")
|
| 32 |
messages = [
|
| 33 |
{"role": "user", "content": text},
|
| 34 |
]
|
|
|
|
| 35 |
out2 = pipe2(messages)
|
| 36 |
|
| 37 |
st.write(out2)
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
+
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-tiny")
|
| 9 |
|
| 10 |
recorded_audio = audio_recorder()
|
| 11 |
if recorded_audio:
|
|
|
|
| 28 |
out2 = pipe2(messages)
|
| 29 |
|
| 30 |
text = st.text_area("enter some text")
|
|
|
|
| 31 |
messages = [
|
| 32 |
{"role": "user", "content": text},
|
| 33 |
]
|
| 34 |
+
pipe2 = pipeline("text-generation", model="meta-llama/Llama-3.2-1B-Instruct")
|
| 35 |
out2 = pipe2(messages)
|
| 36 |
|
| 37 |
st.write(out2)
|