prasanna kumar commited on
Commit
86eb1ac
1 Parent(s): 3676dff

updated app file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,7 +30,7 @@ def process_input(input_type, input_value, model_name):
30
  # token_ids = list(map(int, input_value.split()))
31
  # Convert token IDs back to text
32
  text = tokenizer.decode(token_ids)
33
- print("The decoded text",text)
34
  # Tokenize the text to get individual tokens
35
 
36
  # Create output strings
@@ -55,5 +55,5 @@ iface = gr.Interface(
55
  description="Enter text or token IDs and select a model to see the conversion results."
56
  )
57
 
58
- # Launch the app
59
- iface.launch()
 
30
  # token_ids = list(map(int, input_value.split()))
31
  # Convert token IDs back to text
32
  text = tokenizer.decode(token_ids)
33
+ # print("The decoded text",text)
34
  # Tokenize the text to get individual tokens
35
 
36
  # Create output strings
 
55
  description="Enter text or token IDs and select a model to see the conversion results."
56
  )
57
 
58
+ if __name__ == "__main__":
59
+ iface.launch()