muellerzr HF staff commited on
Commit
163c31c
1 Parent(s): 60e1af6

Try just not doing an html?

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -6,7 +6,7 @@ from huggingface_hub import hf_hub_download
6
  import gradio as gr
7
  import time
8
 
9
- PORT = 8888
10
  HOST = "0.0.0.0"
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
@@ -44,20 +44,9 @@ html = f"""
44
  </iframe>
45
  """
46
 
47
- def run():
48
- print("Starting server....")
49
-
50
  def main():
51
  download_logs()
52
  run_aim()
53
- time.sleep(5)
54
- demo = gr.Interface(
55
- fn=run,
56
- inputs=[],
57
- outputs=gr.HTML(html),
58
- )
59
-
60
- demo.launch()
61
 
62
  if __name__ == "__main__":
63
  main()
 
6
  import gradio as gr
7
  import time
8
 
9
+ PORT = 7860
10
  HOST = "0.0.0.0"
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
 
44
  </iframe>
45
  """
46
 
 
 
 
47
  def main():
48
  download_logs()
49
  run_aim()
 
 
 
 
 
 
 
 
50
 
51
  if __name__ == "__main__":
52
  main()