Matthew Rice
commited on
Commit
·
e15571e
1
Parent(s):
cc74613
Removed Windows Path in Example
Browse files- 3_Demo.ipynb +1 -1
- app.py +2 -2
3_Demo.ipynb
CHANGED
@@ -157,7 +157,7 @@
|
|
157 |
" inputs=gr.Dataframe(row_count=1, col_count=8, headers=[x for x in columns if x not in [\"Cmp\", \"G\", \"GS\"]], label=\"Rookie Year Stats\"), \n",
|
158 |
" outputs=gr.Textbox(label=\"Prediction\"),\n",
|
159 |
" title=\"Rookie QB Career Prediction (Stats)\",\n",
|
160 |
-
" description=\"Given stats of a presumed rookie QB, predict their career tier. Uses data from https:\\/\\/www.pro-football-reference.com. Tiers based on PFR Approximate Value.\"
|
161 |
" article=\"See more details at https://github.com/mhrice/Rookie-QB-Predictions\"\n",
|
162 |
" )\n",
|
163 |
"\n",
|
|
|
157 |
" inputs=gr.Dataframe(row_count=1, col_count=8, headers=[x for x in columns if x not in [\"Cmp\", \"G\", \"GS\"]], label=\"Rookie Year Stats\"), \n",
|
158 |
" outputs=gr.Textbox(label=\"Prediction\"),\n",
|
159 |
" title=\"Rookie QB Career Prediction (Stats)\",\n",
|
160 |
+
" description=\"Given stats of a presumed rookie QB, predict their career tier. Uses data from https:\\/\\/www.pro-football-reference.com. Tiers based on PFR Approximate Value.\",\n",
|
161 |
" article=\"See more details at https://github.com/mhrice/Rookie-QB-Predictions\"\n",
|
162 |
" )\n",
|
163 |
"\n",
|
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
from fastai.tabular.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
-
path = Path()
|
5 |
df = pd.read_csv("rookie_year.csv")
|
6 |
-
learn = load_learner(
|
7 |
columns = ["Name", "G", "GS", "Cmp", "Att", "Yds", "Cmp%", "TD", "Int", "Y/G", "Sk"]
|
8 |
|
9 |
def predict(data):
|
|
|
1 |
from fastai.tabular.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
+
# path = Path()
|
5 |
df = pd.read_csv("rookie_year.csv")
|
6 |
+
learn = load_learner("export.pkl")
|
7 |
columns = ["Name", "G", "GS", "Cmp", "Att", "Yds", "Cmp%", "TD", "Int", "Y/G", "Sk"]
|
8 |
|
9 |
def predict(data):
|