alakxender commited on
Commit
84ca9c3
β€’
1 Parent(s): ec0863c

readme, css

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +3 -6
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Dhivehi Text Generator (GPT-2, Wiki)
3
  emoji: 🌍
4
  colorFrom: blue
5
  colorTo: blue
@@ -8,5 +8,5 @@ sdk_version: 5.6.0
8
  app_file: app.py
9
  pinned: false
10
  ---
11
-
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Dhivehi Text Generator (GPT-2)
3
  emoji: 🌍
4
  colorFrom: blue
5
  colorTo: blue
 
8
  app_file: app.py
9
  pinned: false
10
  ---
11
+
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -27,16 +27,13 @@ def generate_text(prompt, max_length, temperature):
27
  styles = """
28
  .thaana textarea {
29
  font-size: 18px !important;
30
- font-family: 'MV_Faseyha', 'Faruma', 'A_Faruma' !important;
31
  line-height: 1.8 !important;
32
  }
33
- .textbox2 textarea {
34
- display: none;
35
- }
36
  """
37
 
38
- def create_interface(css=styles):
39
- with gr.Blocks() as demo:
40
  gr.Markdown("# Dhivehi Text Generator (GPT-2, Wiki)")
41
  gr.Markdown(
42
  "This is a GPT-2 model trained from Dhivehi text data from wikipedia\n"
 
27
  styles = """
28
  .thaana textarea {
29
  font-size: 18px !important;
30
+ font-family: 'MV_Faseyha', 'Faruma', 'A_Faruma', 'Noto Sans Thaana', 'MV Boli';
31
  line-height: 1.8 !important;
32
  }
 
 
 
33
  """
34
 
35
+ def create_interface():
36
+ with gr.Blocks(css=styles) as demo:
37
  gr.Markdown("# Dhivehi Text Generator (GPT-2, Wiki)")
38
  gr.Markdown(
39
  "This is a GPT-2 model trained from Dhivehi text data from wikipedia\n"