Heisenberg08 commited on
Commit
17353e7
·
1 Parent(s): 17f4e86

added model

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,15 +28,15 @@ def predict_query(input_sentence,max_len=40,temp=0.7):
28
  idx=out.find("<|sep|>")+7
29
  out=out[idx:]
30
  print(f"Sugestion{i} :{out}")
31
- pred.append(tokenizer.decode(out, skip_special_tokens=True))
32
  return pred
33
  # option = st.selectbox(
34
  # 'Please Select option',
35
  # ('Predictive writing',"None"),index=1)
36
 
37
 
38
- st.title("Predictive scientific writing")
39
- st.write('### Using AI to Generate scientific literature')
40
  st.sidebar.markdown(
41
  '''
42
  ## This is a demo of a text generation model trained with GPT-2
 
28
  idx=out.find("<|sep|>")+7
29
  out=out[idx:]
30
  print(f"Sugestion{i} :{out}")
31
+ pred.append(out)
32
  return pred
33
  # option = st.selectbox(
34
  # 'Please Select option',
35
  # ('Predictive writing',"None"),index=1)
36
 
37
 
38
+ st.title("Text2SQL")
39
+ st.write('### Generate SQL Query with just Natural Language sentence')
40
  st.sidebar.markdown(
41
  '''
42
  ## This is a demo of a text generation model trained with GPT-2