Spaces:
Sleeping
Sleeping
update
Browse files
chat_history.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1867776
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8fb7c0fc8a05e8d0809353416f7037f323645a0a5ed6c6eb9804b82917a3e6dd
|
3 |
size 1867776
|
controllers/gra_03_programfromdocgas/__init__.py
ADDED
File without changes
|
controllers/gra_03_programfromdocgas/programfromdoc.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from mysite.libs.utilities import chat_with_interpreter, completion, process_file,no_process_file
|
3 |
+
from interpreter import interpreter
|
4 |
+
import mysite.interpreter.interpreter_config # インポートするだけで設定が適用されます
|
5 |
+
import duckdb
|
6 |
+
import gradio as gr
|
7 |
+
import psycopg2
|
8 |
+
from dataclasses import dataclass, field
|
9 |
+
from typing import List, Optional
|
10 |
+
from mysite.interpreter.process import no_process_file,process_file
|
11 |
+
#from controllers.gra_04_database.rides import test_set_lide
|
12 |
+
|
13 |
+
val = """
|
14 |
+
# gradio で miiboのナレッジに登録する画面の作成
|
15 |
+
gradio_interface interfacec name
|
16 |
+
|
17 |
+
# fastapi
|
18 |
+
gradio apiに接続するAPI
|
19 |
+
router で作成
|
20 |
+
|
21 |
+
1ファイルで作成
|
22 |
+
仕様書の作成
|
23 |
+
plantumlで図にする
|
24 |
+
|
25 |
+
"""
|
26 |
+
|
27 |
+
|
28 |
+
gradio_interface = gr.Interface(
|
29 |
+
fn=process_file,
|
30 |
+
inputs=[
|
31 |
+
"file",
|
32 |
+
gr.Textbox(label="Additional Notes", lines=10,value=val),
|
33 |
+
gr.Textbox(label="Folder Name",value="test_folders"),
|
34 |
+
gr.Textbox(label="github token",value="***********************"),
|
35 |
+
],
|
36 |
+
outputs="text",
|
37 |
+
)
|
controllers/test_folders
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 4bd240c138549093ffe730c1710e0dc992ec5a62
|
controllers/test_foldersta
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 7d1879bf09664e89d473be69a16d8c42a3d8d5a8
|