Comments (5)
me too
from chatgpt-paper-reader.
I ll check this problem, thanks for feedback
from chatgpt-paper-reader.
me too.
raise TypeError("Unsupported input type: %s" % type(filename))
TypeError: Unsupported input type: <class 'tempfile._TemporaryFileWrapper'>
from chatgpt-paper-reader.
the same issue
raise TypeError("Unsupported input type: %s" % type(filename))
TypeError: Unsupported input type: <class 'tempfile._TemporaryFileWrapper'>
from chatgpt-paper-reader.
Looks like the output of gr.File is providing tempfile._TemporaryFileWrapper
object, but the Paper
object requiring str path.
I changed line 14 of gui.py
to pdf_file.name
then the code is able to run now.
def analyse(self, api_key, pdf_file):
self.session = PaperReader(api_key)
self.paper = Paper(pdf_file.name) # change here
return self.session.summarize(self.paper)
from chatgpt-paper-reader.
Related Issues (20)
- drop_conversation 逻辑错误 HOT 1
- 在本地无法上传pdf 也没有报错日志 HOT 1
- Request: Requirement txt or pyproject.toml HOT 1
- TypeError: Unsupported input type: <class 'tempfile._TemporaryFileWrapper'> HOT 3
- Unexpected token '<', "<!DOCTYPE "... is not valid JSON
- how many pdf support? HOT 3
- apikey访问频率问题 HOT 2
- "Error" After click the "Starting Analyse" button.
- Paper length exceeds maximum context length HOT 3
- "Error" After start anlyse. HOT 2
- raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- HOCR Converter, open_filename, FileOrName, AnyIO doesn't exist in the pdfminer library HOT 1
- Unexpected ERROR
- GUI version after drag report cant read a empty file HOT 3
- openai.error maximum context length is 4097 token HOT 3
- Cannot read an empty file HOT 4
- AttributeError: module 'openai' has no attribute 'ChatCompletion' HOT 2
- PyPDF2.errors.EmptyFileError: Cannot read an empty file HOT 5
- gpt_reader/bot/openai.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-paper-reader.