iSaahil commited on
Commit
1cb3650
·
verified ·
1 Parent(s): f1b3159

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -16,16 +16,16 @@ if recorded_audio:
16
 
17
 
18
  if recorded_audio:
19
- out = pipe(audio_file)
20
- st.json(out)
21
-
22
- transcribed_text = out['text']
23
-
24
- messages = [
25
- {"role": "user", "content": transcribed_text},
26
- ]
27
- pipe2 = pipeline("text-generation", model="thtskaran/sanskritayam-gpt")
28
-
29
 
30
- out2 = pipe2(messages)
31
- st.write(out2)
 
 
 
 
 
 
 
16
 
17
 
18
  if recorded_audio:
19
+ out = pipe(audio_file)
20
+ st.json(out)
21
+
22
+ transcribed_text = out['text']
 
 
 
 
 
 
23
 
24
+ messages = [
25
+ {"role": "user", "content": transcribed_text},
26
+ ]
27
+ pipe2 = pipeline("text-generation", model="thtskaran/sanskritayam-gpt")
28
+
29
+
30
+ out2 = pipe2(messages)
31
+ st.write(out2)