Zain4s commited on
Commit
2c632c2
·
verified ·
1 Parent(s): f4c4c6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -2,6 +2,20 @@ import transformers
2
  from transformers import GPT2LMHeadModel, GPT2Tokenizer, GenerationConfig
3
  import streamlit as st
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  model_name = "gpt2-large"
6
  model = GPT2LMHeadModel.from_pretrained(model_name)
7
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
 
2
  from transformers import GPT2LMHeadModel, GPT2Tokenizer, GenerationConfig
3
  import streamlit as st
4
 
5
+
6
+ st.markdown(
7
+ """
8
+ <style>
9
+ .title-input textarea {
10
+ height: 100px; /* Adjust the height as needed */
11
+ padding-top: 20px; /* Adjust the padding as needed */
12
+ }
13
+ </style>
14
+ """,
15
+ unsafe_allow_html=True
16
+ )
17
+
18
+
19
  model_name = "gpt2-large"
20
  model = GPT2LMHeadModel.from_pretrained(model_name)
21
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)