FDSRashid commited on
Commit
d2f8330
·
1 Parent(s): 7dc66d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,9 +1,11 @@
1
  from camel_tools.utils.charmap import CharMapper
2
-
3
  import gradio as gr
 
4
  ar2bw = CharMapper.builtin_mapper('ar2bw')
5
  bw2ar = CharMapper.builtin_mapper('bw2ar')
6
-
 
7
  title = """#Transliterate using BuckWater Scheme"""
8
  description = """
9
  This app converts transliterated arabic text to Arabic using BuckWater Scheme. Use the following image to familiarize yourself with the conversion system.
 
1
  from camel_tools.utils.charmap import CharMapper
2
+ import os
3
  import gradio as gr
4
+ from huggingface_hub import login
5
  ar2bw = CharMapper.builtin_mapper('ar2bw')
6
  bw2ar = CharMapper.builtin_mapper('bw2ar')
7
+ Secret_token = os.getenv('token')
8
+ login(token = Secret_token)
9
  title = """#Transliterate using BuckWater Scheme"""
10
  description = """
11
  This app converts transliterated arabic text to Arabic using BuckWater Scheme. Use the following image to familiarize yourself with the conversion system.