dwb2023 commited on
Commit
5e040c2
1 Parent(s): 8f97bb1

Update app.py

Browse files

add login for private repos

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,9 @@ import os
2
  import subprocess
3
  import gradio as gr
4
  from magika import Magika
 
 
 
5
 
6
  SUPPORTED_FILE_TYPES = ["txt", "python", "markdown", "yaml", "json", "csv", "tsv", "xml", "html"]
7
 
 
2
  import subprocess
3
  import gradio as gr
4
  from magika import Magika
5
+ from huggingface_hub import login
6
+
7
+ login()
8
 
9
  SUPPORTED_FILE_TYPES = ["txt", "python", "markdown", "yaml", "json", "csv", "tsv", "xml", "html"]
10