kevinhug commited on
Commit
9ef3b6b
·
1 Parent(s): afa334c
Files changed (2) hide show
  1. app.py +2 -2
  2. graphrag.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from rag import rbc_product
3
  from tool import rival_product
4
- from graphrag import marketing
5
  from knowledge import graph
6
  from pii import derisk
7
  from classify import judge
@@ -154,7 +154,7 @@ Scalability through Partnerships: Key partners (e.g., tech vendors, logistics pr
154
 
155
  By framing each component as a strategic variable rather than a fixed element, businesses can continuously adapt to disruptions—a necessity in Ohmae’s vision of fluid, customer-first strategy.
156
  """
157
- in_verbatim = gr.Textbox(label="Context", value=marketing, visible=False)
158
  in_question = gr.Textbox(label="Persona")
159
  out_product = gr.Textbox(label="Plan")
160
 
 
1
  import gradio as gr
2
  from rag import rbc_product
3
  from tool import rival_product
4
+ from graphrag import marketingPlan
5
  from knowledge import graph
6
  from pii import derisk
7
  from classify import judge
 
154
 
155
  By framing each component as a strategic variable rather than a fixed element, businesses can continuously adapt to disruptions—a necessity in Ohmae’s vision of fluid, customer-first strategy.
156
  """
157
+ in_verbatim = gr.Textbox(label="Context", value=marketingPlan, visible=False)
158
  in_question = gr.Textbox(label="Persona")
159
  out_product = gr.Textbox(label="Plan")
160
 
graphrag.py CHANGED
@@ -90,7 +90,7 @@ def reasoning(text, question):
90
  return str(e)
91
 
92
 
93
- def marketing(text, question):
94
  try:
95
  print("Generate Knowledgegraph...")
96
  graph, graph_documents_filtered = knowledge_graph(text)
 
90
  return str(e)
91
 
92
 
93
+ def marketingPlan(text:str, question:str)-> str:
94
  try:
95
  print("Generate Knowledgegraph...")
96
  graph, graph_documents_filtered = knowledge_graph(text)