Martin Polacek commited on
Commit
426f5d2
·
1 Parent(s): 7040b69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -15,14 +15,17 @@ model = CapitalizationModel()
15
 
16
  # Inicializace
17
 
 
 
 
 
18
 
 
 
19
 
20
- # Textové vstupní pole
21
- input_text = st.text_input("Zadejte text zde:")
22
 
23
- # Tlačítko pro potvrzení
24
- submit_button = st.button("Odeslat")
25
-
26
- # Akce po stisknutí tlačítka
27
  if submit_button:
28
- st.write(f"Výstup: {model.run(input_text)}")
 
15
 
16
  # Inicializace
17
 
18
+ st.write("""
19
+ # Capitalization Model
20
+ This application uses a transformer model 'Electra-small' with subsequent fine-tuning and a contextual window of 256 tokens.
21
+ """)
22
 
23
+ # Text input field
24
+ input_text = st.text_input("Enter text here:")
25
 
26
+ # Button for submission
27
+ submit_button = st.button("Submit")
28
 
29
+ # Action after button press
 
 
 
30
  if submit_button:
31
+ st.write(f"Output: {model.run(input_text)}")