Sarpyy commited on
Commit
4718ec2
·
verified ·
1 Parent(s): c7a3ca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -31,7 +31,6 @@ def get_lemma_for_word(word: str) -> str:
31
  if not clean_word:
32
  return word
33
 
34
- # Sayı kontrolü
35
  num_match = re.match(r"^(\d+(?:[.,]\d+)?)(?:['’.]?[a-zA-ZğüşıöçĞÜŞİÖÇ]*)$", clean_word)
36
  if num_match:
37
  return num_match.group(1)
@@ -164,11 +163,7 @@ footer {
164
  }
165
  """
166
 
167
- with gr.Blocks(
168
- title="Türkçe Lemmatizer",
169
- theme=theme,
170
- css=custom_css
171
- ) as demo:
172
 
173
  gr.HTML("""
174
  <div class="main-title">
@@ -235,4 +230,4 @@ with gr.Blocks(
235
  )
236
 
237
  if __name__ == "__main__":
238
- demo.launch()
 
31
  if not clean_word:
32
  return word
33
 
 
34
  num_match = re.match(r"^(\d+(?:[.,]\d+)?)(?:['’.]?[a-zA-ZğüşıöçĞÜŞİÖÇ]*)$", clean_word)
35
  if num_match:
36
  return num_match.group(1)
 
163
  }
164
  """
165
 
166
+ with gr.Blocks(title="Türkçe Lemmatizer") as demo:
 
 
 
 
167
 
168
  gr.HTML("""
169
  <div class="main-title">
 
230
  )
231
 
232
  if __name__ == "__main__":
233
+ demo.launch(theme=theme, css=custom_css)