acecalisto3 commited on
Commit
f00a881
1 Parent(s): 42f2529

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -14
app.py CHANGED
@@ -1,4 +1,5 @@
1
  from typing import List, Dict, Optional
 
2
  from types import (
3
  Code,
4
  Prompt,
@@ -13,21 +14,30 @@ from types import (
13
  ReactApp,
14
  Code,
15
  )
 
16
  from agent import Agent
17
- from prompts import (
18
- createLlamaPrompt,
19
- createSpace,
20
- isPythonOrGradioAppPrompt,
21
- isReactAppPrompt,
22
- isStreamlitAppPrompt,
23
- getWebApp,
24
- getGradioApp,
25
- getReactApp,
26
- getStreamlitApp,
27
- parseTutorial,
28
- generateFiles,
29
- )
30
- from huggingface_hub import InferenceClient
 
 
 
 
 
 
 
 
31
 
32
  class Agent:
33
  def __init__(self, prompts: Dict[str, any]):
 
1
  from typing import List, Dict, Optional
2
+
3
  from types import (
4
  Code,
5
  Prompt,
 
14
  ReactApp,
15
  Code,
16
  )
17
+
18
  from agent import Agent
19
+
20
+ # Import the translated functions from the .py files
21
+ from alpine import alpine
22
+ from createLlamaPrompt import createLlamaPrompt
23
+ from createSpace import createSpace
24
+ from daisy import daisy
25
+ from docker import docker
26
+ from generateFiles import generateFiles
27
+ from getGradioApp import getGradioApp
28
+ from getReactApp import getReactApp
29
+ from getStreamlitApp import getStreamlitApp
30
+ from getWebApp import getWebApp
31
+ from gradioDoc import gradioDoc
32
+ from index import index
33
+ from isPythonOrGradioAppPrompt import isPythonOrGradioAppPrompt
34
+ from isReactAppPrompt import isReactAppPrompt
35
+ from isStreamlitAppPrompt import isStreamlitAppPrompt
36
+ from main import main
37
+ from parseTutorial import parseTutorial
38
+ from streamlitDoc import streamlitDoc
39
+ from types import AppType
40
+ from typescript import typescript
41
 
42
  class Agent:
43
  def __init__(self, prompts: Dict[str, any]):