Spaces:
Sleeping
Sleeping
Akshay
commited on
Commit
·
d4fd494
1
Parent(s):
36f21cf
Corrected Pydantic mistake
Browse files
app.py
CHANGED
@@ -4,11 +4,7 @@ import gradio as gr
|
|
4 |
from pydantic import BaseModel, Field
|
5 |
from typing import List
|
6 |
|
7 |
-
with open("job_stack_count.pkl", "rb") as f:
|
8 |
-
job_stack_count = pkl.load(f)
|
9 |
|
10 |
-
job_stack_count['Generative_AI_Frameworks']['Pydantic'] = 1
|
11 |
-
job_stack_count['Programming_Languages']['C#'] = 1
|
12 |
|
13 |
class TechStack(BaseModel):
|
14 |
GPU_Frameworks: List[str] = Field(..., alias="GPU Frameworks")
|
@@ -33,10 +29,12 @@ class TechStack(BaseModel):
|
|
33 |
class Config:
|
34 |
populate_by_name = True
|
35 |
|
36 |
-
# Load the job stack count data
|
37 |
with open("job_stack_count.pkl", "rb") as f:
|
38 |
job_stack_count = pkl.load(f)
|
39 |
|
|
|
|
|
|
|
40 |
# Load the user's stack data
|
41 |
with open("all_my_stacks.pkl", "rb") as f:
|
42 |
mynew_stacks = pkl.load(f)
|
|
|
4 |
from pydantic import BaseModel, Field
|
5 |
from typing import List
|
6 |
|
|
|
|
|
7 |
|
|
|
|
|
8 |
|
9 |
class TechStack(BaseModel):
|
10 |
GPU_Frameworks: List[str] = Field(..., alias="GPU Frameworks")
|
|
|
29 |
class Config:
|
30 |
populate_by_name = True
|
31 |
|
|
|
32 |
with open("job_stack_count.pkl", "rb") as f:
|
33 |
job_stack_count = pkl.load(f)
|
34 |
|
35 |
+
job_stack_count['Generative_AI_Frameworks']['Pydantic'] = 1
|
36 |
+
job_stack_count['Programming_Languages']['C#'] = 1
|
37 |
+
|
38 |
# Load the user's stack data
|
39 |
with open("all_my_stacks.pkl", "rb") as f:
|
40 |
mynew_stacks = pkl.load(f)
|