teticio commited on
Commit
58b27cd
1 Parent(s): 02a7301
Files changed (2) hide show
  1. app.py +0 -2
  2. notebooks/gradio_app.ipynb +4 -26
app.py CHANGED
@@ -41,5 +41,3 @@ if __name__ == "__main__":
41
  parser.add_argument("--server", type=int)
42
  args = parser.parse_args()
43
  demo.launch(server_name=args.server or "0.0.0.0", server_port=args.port)
44
- else:
45
- demo.launch(share=True)
 
41
  parser.add_argument("--server", type=int)
42
  args = parser.parse_args()
43
  demo.launch(server_name=args.server or "0.0.0.0", server_port=args.port)
 
 
notebooks/gradio_app.ipynb CHANGED
@@ -39,37 +39,15 @@
39
  },
40
  {
41
  "cell_type": "code",
42
- "execution_count": 3,
43
  "id": "2d948967",
44
  "metadata": {
45
  "scrolled": false
46
  },
47
- "outputs": [
48
- {
49
- "name": "stdout",
50
- "output_type": "stream",
51
- "text": [
52
- "Running on local URL: http://127.0.0.1:7861/\n",
53
- "Running on public URL: https://24053.gradio.app\n",
54
- "\n",
55
- "This share link expires in 72 hours. For free permanent hosting, check out Spaces: https://huggingface.co/spaces\n"
56
- ]
57
- },
58
- {
59
- "data": {
60
- "text/html": [
61
- "<div><iframe src=\"https://24053.gradio.app\" width=\"900\" height=\"500\" allow=\"autoplay; camera; microphone;\" frameborder=\"0\" allowfullscreen></iframe></div>"
62
- ],
63
- "text/plain": [
64
- "<IPython.core.display.HTML object>"
65
- ]
66
- },
67
- "metadata": {},
68
- "output_type": "display_data"
69
- }
70
- ],
71
  "source": [
72
- "import app"
 
73
  ]
74
  },
75
  {
 
39
  },
40
  {
41
  "cell_type": "code",
42
+ "execution_count": null,
43
  "id": "2d948967",
44
  "metadata": {
45
  "scrolled": false
46
  },
47
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  "source": [
49
+ "import app\n",
50
+ "app.demo.launch(share=True);"
51
  ]
52
  },
53
  {