Tonic commited on
Commit
f2102a7
1 Parent(s): aaab817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -5,6 +5,13 @@ import os
5
  import spacy
6
  from spacy import displacy
7
 
 
 
 
 
 
 
 
8
  model_name = "PleIAs/OCRonos-Vintage"
9
  model = GPT2LMHeadModel.from_pretrained(model_name)
10
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
@@ -89,11 +96,7 @@ def reset_interface():
89
 
90
  with gr.Blocks(theme=gr.themes.Base()) as iface:
91
 
92
- gr.Markdown("""
93
- # Historical Text Generator with Dependency Parse
94
- This app generates historical-style text using the OCRonos-Vintage model.
95
- You can customize the generation parameters using the sliders and visualize the tokenized output and dependency parse.
96
- """)
97
 
98
  prompt = gr.Textbox(label="Add a passage in the style of historical texts", placeholder="Hi there my name is Tonic and I ride my bicycle along the river Seine:", lines=3)
99
 
 
5
  import spacy
6
  from spacy import displacy
7
 
8
+ title = """
9
+ # 🙋🏻‍♂️Welcome to 🌟Tonic's 🎅🏻⌚OCRonos Vintage Text Gen
10
+ This app generates historical-style text using the OCRonos-Vintage model. You can customize the generation parameters using the sliders and visualize the tokenized output and dependency parse. You can see a tokenized visualisation of the output and your input, and learn english using the visualization for the output text!
11
+ ### Join us :
12
+ 🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [![Join us on Discord](https://img.shields.io/discord/1109943800132010065?label=Discord&logo=discord&style=flat-square)](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
13
+ """
14
+
15
  model_name = "PleIAs/OCRonos-Vintage"
16
  model = GPT2LMHeadModel.from_pretrained(model_name)
17
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
 
96
 
97
  with gr.Blocks(theme=gr.themes.Base()) as iface:
98
 
99
+ gr.Markdown(title)
 
 
 
 
100
 
101
  prompt = gr.Textbox(label="Add a passage in the style of historical texts", placeholder="Hi there my name is Tonic and I ride my bicycle along the river Seine:", lines=3)
102