sunjuice commited on
Commit
feffa8c
·
1 Parent(s): baec227

added dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -0
  2. Untitled.ipynb +0 -68
Dockerfile ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+ WORKDIR /code
3
+ COPY ./requirements.txt /code/requirements.txt
4
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
5
+ COPY . .
6
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
Untitled.ipynb DELETED
@@ -1,68 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "id": "5b3c9fac-51c3-4ecc-8606-5a298076560e",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "from huggingface_hub import notebook_login\n"
11
- ]
12
- },
13
- {
14
- "cell_type": "code",
15
- "execution_count": 2,
16
- "id": "51fe1170-c6eb-4b3a-a055-663faf35ab5a",
17
- "metadata": {},
18
- "outputs": [
19
- {
20
- "data": {
21
- "application/vnd.jupyter.widget-view+json": {
22
- "model_id": "6c6d20c8f5e847d7985f6b49a7206a2d",
23
- "version_major": 2,
24
- "version_minor": 0
25
- },
26
- "text/plain": [
27
- "VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"
28
- ]
29
- },
30
- "metadata": {},
31
- "output_type": "display_data"
32
- }
33
- ],
34
- "source": [
35
- "notebook_login()"
36
- ]
37
- },
38
- {
39
- "cell_type": "code",
40
- "execution_count": null,
41
- "id": "4297ea17-a4f8-4290-b561-f582b1adc189",
42
- "metadata": {},
43
- "outputs": [],
44
- "source": []
45
- }
46
- ],
47
- "metadata": {
48
- "kernelspec": {
49
- "display_name": "work",
50
- "language": "python",
51
- "name": "work"
52
- },
53
- "language_info": {
54
- "codemirror_mode": {
55
- "name": "ipython",
56
- "version": 3
57
- },
58
- "file_extension": ".py",
59
- "mimetype": "text/x-python",
60
- "name": "python",
61
- "nbconvert_exporter": "python",
62
- "pygments_lexer": "ipython3",
63
- "version": "3.11.9"
64
- }
65
- },
66
- "nbformat": 4,
67
- "nbformat_minor": 5
68
- }