tsaditya commited on
Commit
1f523c9
·
1 Parent(s): 5b4ec6f

button and other errors

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -19,10 +19,11 @@ def getit(prompt):
19
  model_name = 'tsaditya/GPT-Kalki'
20
  model = AutoModelWithLMHead.from_pretrained(model_name)
21
  tokenizer = AutoTokenizer.from_pretrained(model_name)
22
- inp = st.text_input(value="மணிமேகலை! உன் மனோரதம் நிறைவேறிவிட்டது.")
23
- out = getit(inp)
24
- st.write(out)
25
- video_file = open('myvideo.mp4', 'rb')
 
26
  video_bytes = video_file.read()
27
  st.video(video_bytes)
28
 
 
19
  model_name = 'tsaditya/GPT-Kalki'
20
  model = AutoModelWithLMHead.from_pretrained(model_name)
21
  tokenizer = AutoTokenizer.from_pretrained(model_name)
22
+ inp = st.text_input(value="நந்தினி பெரிய பழுவேட்டரையரைப் பார்த்து ",label = "Enter prompt")
23
+ if st.button("Generate!"):
24
+ out = getit(inp)
25
+ st.write(out)
26
+ video_file = open(r'myvideo.mp4', 'rb')
27
  video_bytes = video_file.read()
28
  st.video(video_bytes)
29