fliaght commited on
Commit
c6d0017
·
1 Parent(s): 73b667c
Files changed (1) hide show
  1. 001test.ipynb +0 -72
001test.ipynb DELETED
@@ -1,72 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": true,
8
- "ExecuteTime": {
9
- "end_time": "2023-07-25T14:40:40.151569300Z",
10
- "start_time": "2023-07-25T14:40:33.832701300Z"
11
- }
12
- },
13
- "outputs": [
14
- {
15
- "name": "stdout",
16
- "output_type": "stream",
17
- "text": [
18
- "Running on local URL: http://127.0.0.1:7860\n",
19
- "Running on public URL: https://8f5db7c8b37150e9bf.gradio.live\n",
20
- "\n",
21
- "This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces\n"
22
- ]
23
- },
24
- {
25
- "data": {
26
- "text/plain": ""
27
- },
28
- "execution_count": 1,
29
- "metadata": {},
30
- "output_type": "execute_result"
31
- }
32
- ],
33
- "source": [
34
- "import gradio as gr\n",
35
- "def reverse(text):\n",
36
- " return text[::-1]\n",
37
- "demo = gr.Interface(reverse, \"text\", \"text\")\n",
38
- "demo.launch(share=True, auth=(\"username\", \"password\"))"
39
- ]
40
- },
41
- {
42
- "cell_type": "code",
43
- "execution_count": null,
44
- "outputs": [],
45
- "source": [],
46
- "metadata": {
47
- "collapsed": false
48
- }
49
- }
50
- ],
51
- "metadata": {
52
- "kernelspec": {
53
- "display_name": "Python 3",
54
- "language": "python",
55
- "name": "python3"
56
- },
57
- "language_info": {
58
- "codemirror_mode": {
59
- "name": "ipython",
60
- "version": 2
61
- },
62
- "file_extension": ".py",
63
- "mimetype": "text/x-python",
64
- "name": "python",
65
- "nbconvert_exporter": "python",
66
- "pygments_lexer": "ipython2",
67
- "version": "2.7.6"
68
- }
69
- },
70
- "nbformat": 4,
71
- "nbformat_minor": 0
72
- }