acecalisto3 commited on
Commit
2c588b7
1 Parent(s): 6a7ff95

Create types.py

Browse files
Files changed (1) hide show
  1. types.py +48 -0
types.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from enum import Enum
2
+ from typing import List, Dict, Optional
3
+
4
+ class Code:
5
+ def __init__(self, code: str, language: str):
6
+ self.code = code
7
+ self.language = language
8
+
9
+ class Prompt:
10
+ def __init__(self, prompt: str):
11
+ self.prompt = prompt
12
+
13
+ class AppType(Enum):
14
+ WEB_APP = "web app"
15
+ GRADIO_APP = "gradio app"
16
+ STREAMLIT_APP = "streamlit app"
17
+ REACT_APP = "react app"
18
+
19
+ class File:
20
+ def __init__(self, name: str, content: str, language: str):
21
+ self.name = name
22
+ self.content = content
23
+ self.language = language
24
+
25
+ class Space:
26
+ def __init__(self, space: str):
27
+ self.space = space
28
+
29
+ class Tutorial:
30
+ def __init__(self, tutorial: str):
31
+ self.tutorial = tutorial
32
+
33
+ class App:
34
+ def __init__(self, code: str, language: str):
35
+ self.code = code
36
+ self.language = language
37
+
38
+ class WebApp(App):
39
+ pass
40
+
41
+ class GradioApp(App):
42
+ pass
43
+
44
+ class StreamlitApp(App):
45
+ pass
46
+
47
+ class ReactApp(App):
48
+ pass