tferhan commited on
Commit
06c5681
·
verified ·
1 Parent(s): 9865c32

Update finito.py

Browse files
Files changed (1) hide show
  1. finito.py +4 -15
finito.py CHANGED
@@ -1,16 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
- """finito.ipynb
3
-
4
- Automatically generated by Colaboratory.
5
-
6
- Original file is located at
7
- https://colab.research.google.com/drive/1rNnk3xajWzVdyH2eXJ58ghLpk-zejGw-
8
- """
9
-
10
- !pip install -r requirements.txt
11
-
12
- !pip install gradio
13
-
14
  from langchain.prompts import StringPromptTemplate
15
  import re
16
  import langchain
@@ -78,6 +65,8 @@ agent = initialize_agent(
78
  verbose = True
79
  )
80
 
81
- agent.invoke("bonjour je veux l'addresse de contact. Et donner moi les donnée de la finance")
 
 
82
 
83
- gr.ChatInterface(agent.invoke).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from langchain.prompts import StringPromptTemplate
2
  import re
3
  import langchain
 
65
  verbose = True
66
  )
67
 
68
+ def data_gov_ma(message, history):
69
+ response = agent.run(message)
70
+ return response
71
 
72
+ gr.ChatInterface(data_gov_ma).launch()